outer function 2
print
def outer():
x = 'hello'
def inner():
x = 'python'
def inner2():
nonlocal x
x = 'monty'
print('inner1 (before):',x)
inner2()
print('inner2 (after):',x)
inner()
print('outer:', x)
outer()INFO