Q. What is the output of while i < 3: print(i); i += 1 with i = 0?
Solution:
The while loop prints 0, 1, 2 as i increments from 0 to 2.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
The while loop prints 0, 1, 2 as i increments from 0 to 2.
Strengthen Your Practice with our comprehensive question bank.