Practice Test Geeks home

PCEP Variable Scope and the `global` keyword 2

What will the following code print?
x = 10

def foo():

x = 20

foo()

print(x)

Select your answer