We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8917c3 commit b8c6700Copy full SHA for b8c6700
1 file changed
v3/example-code/nonlocal.txt
@@ -4,7 +4,8 @@ def outer():
4
def inner():
5
nonlocal x
6
x = 2
7
- print("inner:", x)
+ y = x
8
+ print("inner:", x, y)
9
inner()
10
print("outer:", x)
11
0 commit comments