Problem Statement
Which loop runs until a condition becomes false?
Explanation
A while loop in Python continues executing its block as long as the given condition evaluates to true. Once it becomes false, the loop stops automatically.
This makes while loops useful when you do not know in advance how many times the block should repeat, such as reading data until an end condition is met.
Code Solution
SolutionRead Only
i=0 while i<5: print(i); i+=1
