Question
What is the output of the code shown below?def f1(): x=100 print(x)x=+1f1()
Answer: Option B
Was this answer helpful ?
The variable x is a local variable. It is first printed and then modified. Hence the output of this code is 100.
Was this answer helpful ?
Submit Solution