Skipping Parts of a For Loop
andrew.henshaw at mail.com
Sun Sep 15 00:54:47 EDT 2002
Thomas Guettler wrote:
> Is there a way to skip some parts in a for loop?
> for i in range(3):
> print "i before", i
> print "i after", i
> Is there a way to skip some parts?
> "continue" skipps one element. But how can
> I skip several?
While not really answering your question... In my opinion, it would be
better to use a while loop for that purpose. The code would be much
More information about the Python-list