Examveda

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

D. Neither x, nor y, nor z

Answer: Option C


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python