+ 1
why is it printing 3? Although in theory it should not
i = 1 while i<=5: print(i) i+=1 if i==3: print("Skipping 3") continue
4 ответов
+ 7
it skip 3 after print 3.
see the logic error there ?
+ 2
the code works from top to bottom.
you have the check if the value == 3 AFTER your call to print each value. just put the if statement first
+ 1
many thanks to all!