Vidyalelo
Python · Q152

Functions in Python

Programming · Python · question 152

Q152

What will be the output of the following Python code? i=0 def change(i): i=i+1 return i change(1) print(i)

A.
1
B.
Nothing is displayed
C.
0
Answer
D.
An exception is thrown

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board