[Tutor] Continue Statement

Alina Campana lilith-adameve at hotmail.com
Mon Dec 16 15:12:33 CET 2013


Hello dear tutorlist,
I feel terribly ashamed for my bad english...
Yet I'll try to form my question:
It is about the continue statement in python.I wrote this code
i = 0while (i < 10):	if i == 5:		continue	print i	i+=1
What i expected was an output like12346789
Instead it seems to freeze after 4. The shell input symbol is blinking.

I bet this is easy enough for pros but I really got my problem with understanding the reason why.
Okay thank you people, I go now learn better english ^^ 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20131216/5c482e87/attachment.html>


More information about the Tutor mailing list