0
The answer should be 4 of the question after break!
2 ответов
+ 4
Reminder of the question:
How many numbers does this code print?
i = 5
while True:
print(i)
i = i - 1
if i <= 2:
break
The answer is indeed 3. The code will print the numbers 5, 4, 3. Right after printing 3, i is decremented to 2 and we enter the if case, resulting in a break.
0
I think so too, the answer must be 3