Question PRG-PY-0046
MediumWhat is the output of this program?
x = 10
def outer():
x = 20
def inner():
nonlocal x
x += 5
return x
return inner() + x
print(outer(), x)
- A.
50 25
- B.
50 10
- C.
Sign up free to see the answer and a step-by-step explanation.