Advertisements
Advertisements
Question
How many times are the following loop executed?
i = 4
while (i>=4):
print i
i+ = 10Very Short Answer
Advertisements
Solution
The value of i keeps increasing, so i >= 4 always remains true.
Infinite times (Infinite loop)
shaalaa.com
Is there an error in this question or solution?
