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:
TreKar99 2023-02-01 11:30:06 +01:00 committed by GitHub
parent c6f7d5b2f3
commit 779feeab5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,6 +127,7 @@ while condition:
count = 0
while count < 5:
if count == 3:
count = count + 1
continue
print(count)
count = count + 1