Q. What will be the output of this statement?
Code:
1. i = 0 2. while i < 5: 3. print(i) 4. i += 1 5. if i == 3: 6. break 7. else: 8. print(0)
β
Correct Answer: (C)
0 1 2
1. i = 0 2. while i < 5: 3. print(i) 4. i += 1 5. if i == 3: 6. break 7. else: 8. print(0)
You must be Logged in to update hint/solution