Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 11_Day_Functions/11_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,11 @@ Generally avoid this unless required as it makes it harder to understand what th

```py
#You can pass functions around as parameters
def square_number (n):
def self_power (n):
return n ** n
def do_something(f, x):
return f(x)
print(do_something(square_number, 3)) # 27
print(do_something(self_power, 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.
Expand Down