mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-12 21:01:48 +08:00
Fix square_number function output in markdown
Corrected the square_number function to return n raised to the power of n.
This commit is contained in:
parent
24d18fea60
commit
6b7fddd1d0
@ -406,7 +406,7 @@ def square_number (n):
|
||||
return n ** n
|
||||
def do_something(f, x):
|
||||
return f(x)
|
||||
print(do_something(square_number, 3)) # 9
|
||||
print(do_something(square_number, 3)) # 27
|
||||
```
|
||||
|
||||
🌕 You achieved quite a lot so far. Keep going! You have just completed day 11 challenges and you are 11 steps a head in to your way to greatness. Now do some exercises for your brain and muscles.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user