conceptual
global - created by inner function
What does this code output?
pythondef func():
def inner():
global x
x = 20
inner()
print(x)
func()
print(x)What does this code output?
pythondef func():
def inner():
global x
x = 20
inner()
print(x)
func()
print(x)