What will be the output of the following Python code?
i=0
def change(i):
i=i+1
return i
change(1)
print(i)
i=0
def change(i):
i=i+1
return i
change(1)
print(i)A. 1
B. Nothing is displayed
C. 0
D. An exception is thrown
Answer: Option C

Join The Discussion