Q. What will be the output of the following Python code?
Code:
i = 0
while i < 3:
print(i)
i += 1
else:
print(0)
β
Correct Answer: (B)
0 1 2 0
i = 0
while i < 3:
print(i)
i += 1
else:
print(0)
You must be Logged in to update hint/solution