What is the output of the following Python code snippet?
i = 0
while i
Correct answer
A. 3
5 views
A. 3
5 views
The while loop runs until the condition becomes False.
Asked in: Python Interview Control Flow
https://docs.python.org/3/tutorial/controlflow.htmlNot sure why the answer is A? Ask here and get an explanation.