?
What will be the output of the following Python code?
What will be the output of the following Python code?
def foo():
total += 1
return total
total = 0
print(foo())
def foo():
total += 1
return total
total = 0
print(foo())
Join the Discussion
Login to post a comment or share your explanation.
Login