mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-12 21:01:48 +08:00
Infinite loop in continue example
The condition of (if count == 3) makes an infinite loop because can't increase the count.
This commit is contained in:
parent
c6f7d5b2f3
commit
779feeab5f
@ -127,6 +127,7 @@ while condition:
|
||||
count = 0
|
||||
while count < 5:
|
||||
if count == 3:
|
||||
count = count + 1
|
||||
continue
|
||||
print(count)
|
||||
count = count + 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user