0
Question about ācontinueā
So as i was typing a ācontinueā program,here is what i typed- i = 0 while i<=10: i += 1 if i == 3: print("skipped") continue print(i) I got output from 1 to 11. I want it to stop at 10,is there any other way except using i<10,Or using Break to stop after reaching 10. Will rearranging this program lines in any way without any change work?
2 Answers
+ 4
replace "while i<=10:" with "while i<10:"
+ 1
Hello. Replace i=0 for i=1 and move i+=1 at the end of while (sorry by my english)



