Vidyalelo
Python · Q150

Functions in Python

Programming · Python · question 150

Q150

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

A.
0
B.
1
Answer
C.
error
D.
none of the mentioned

Answer: Option B

Solution

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