Examveda

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

A. error

B. hello

C. 16

D. 16
hello

Answer: Option A


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python