Skip to content

Commit a226251

Browse files
author
lev epshtein
committed
commit 3
1 parent 6ea34d9 commit a226251

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
def print_msg(msg):
2+
# This is the outer enclosing function
3+
4+
def printer():
5+
# This is the nested function
6+
print(msg)
7+
8+
printer()
9+
10+
# We execute the function
11+
# Output: Hello
12+
print_msg("Hello")
13+
14+

0 commit comments

Comments
 (0)