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:
ADARSH 2026-03-03 16:51:03 +05:30 committed by GitHub
parent 24d18fea60
commit 6b7fddd1d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.