> masteringswe_
conceptual

global - read before local assignment

What does this code output?

pythonx = 10

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

func()
print(x)