We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df1586 commit a6c7824Copy full SHA for a6c7824
python-closure/closure.py
@@ -9,7 +9,7 @@
9
10
def outer_func():
11
name = "Pythonista"
12
- return lambda name=name: print(f"Hello, {name}!")
+ return lambda: print(f"Hello, {name}!")
13
14
15
inner_func = outer_func()
0 commit comments