Q. What is the output of the following code?
Code:
count = 1
def calculate():
global count
for i in (1, 2, 3, 4):
count += 1
calculate()
print count
β
Correct Answer: (C)
5