Vidyalelo
Python · Q100

Functions in Python

Programming · Python · question 100

Q100

Read the following Python code carefully and point out the global variables? y, z = 1, 2 def f(): global x x = y+z

A.
x
B.
y and z
C.
x, y and z
Answer
D.
Neither x, nor y, nor z

Answer: Option C

Solution

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