Skip to content

Commit e8714a0

Browse files
committed
committed from zkp
1 parent eddbf73 commit e8714a0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

original/2.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
def add_b():
2+
global b
3+
b = 42
4+
def do_global():
5+
global b
6+
b += 10
7+
print(b)
8+
do_global()
9+
print(b)
10+
add_b()
11+
print(b)

0 commit comments

Comments
 (0)