🐍Pythonadvanced
Question 1 of 10
def outer():
x = 'outer'
def inner():
nonlocal x
x = 'inner'
inner()
return x
print(outer())What's the output?
Question 1 of 10
def outer():
x = 'outer'
def inner():
nonlocal x
x = 'inner'
inner()
return x
print(outer())What's the output?