> masteringswe_
conceptual

global - from inner function only

What does this code output?

pythondef func():
    x = 15

    def inner():
        global x
        x = 20
    print(x)
    inner()
    print(x)

func()
print(x)