Vidyalelo
Python · Q29

Functions in Python

Programming · Python · question 29

Q29

What will be the output of the following Python code? def f1(): global x x+=1 print(x) x=12 print("x")

A.
Error
B.
13
C.
13
x
D.
x
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board