Skip to content

Commit b8c6700

Browse files
author
Philip Guo
committed
tiny
1 parent f8917c3 commit b8c6700

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

v3/example-code/nonlocal.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ def outer():
44
def inner():
55
nonlocal x
66
x = 2
7-
print("inner:", x)
7+
y = x
8+
print("inner:", x, y)
89
inner()
910
print("outer:", x)
1011

0 commit comments

Comments
 (0)