30-Days-Of-Python icon indicating copy to clipboard operation
30-Days-Of-Python copied to clipboard

Exercise day 10 correction

Open venkyqz opened this issue 3 years ago • 1 comments

There is an error in the example code in Day 10 exercise, Break and Continue - Part 1

count = 0
while count < 5:
    if count == 3:
        continue
    print(count)
    count = count + 1

The while loop shown above is an endless loop. It will never print number 4.

venkyqz avatar Jul 01 '22 11:07 venkyqz

For me it print out the numbers 0, 1, and 2.

Wanahun-Birhanie avatar Jul 04 '22 06:07 Wanahun-Birhanie