Scoping 4
def a():
x = 1
y = 2
def b():
global y # this y is for all, not y = 2 above
y = 1 # set global y to be 1
print(y,x)
b()
print(y)
a()
print(y)INFO
def a():
x = 1
y = 2
def b():
global y # this y is for all, not y = 2 above
y = 1 # set global y to be 1
print(y,x)
b()
print(y)
a()
print(y)