Examveda

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: Option D


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python