conceptual
nonlocal - nearest enclosing scope
What does this code output?
pythondef fun1():
name = "geek"
def fun2():
name = "Geek"
def fun3():
nonlocal name
name = 'GEEK'
print(name)
fun3()
print(name)
fun2()
print(name)
fun1()