0
Why does this code print 11 as well?
count = 0 while count <= 10: count = count + 1 if count % 2 == 0: continue print(count) #output: 1 3 5 7 9 11
1 ответ
+ 1
Because it loops as long as count is not greater than 10 and then increases count before printing. So you enter with 10 and print 10+1.