Question PRG-PY-0062
HardWhat is the output of this program?
x = 5
def outer():
x = 10
def inner():
global x
x += 1
return x
return inner(), x
print(outer(), x)
- A.
(11, 10) 5
- B.
(6, 6) 6
- C.
Sign up free to see the answer and a step-by-step explanation.