What will be the output of the following Python code?
def f1(x):
global x
x+=1
print(x)
f1(15)
print("hello")
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

Join The Discussion