+ 4
How many numbers will be printed?
i = 0 while i<10: i = i +1 if i == 7: continue print(i) The answer is 9 although I count 8, what am I missing?
5 Réponses
+ 2
It includes all numbers from 1 to 10 (inclusive) except 7.
+ 2
Ok, I get it
+ 1
This program prints the numbers
1
2
3
4
5
6
8
9
10
That is count is 9
So if u want your count to be 8 just initiate i with 1(i=1)
- 1
what are you do
- 2
hello