> masteringswe_
conceptual

global - reassign in a function

What does this code output?

pythonx = 10

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

print(x)
func()
print(x)