7
What is the output of the following code?
x = 10
def f():
global x
x = 5
f()
print(x)Easy
What is the output of the following code?
x = 10
def f():
global x
x = 5
f()
print(x)Log in to join the discussion.