Skipping Parts of a For Loop

Gerhard Häring gerhard.haering at gmx.de
Sat Sep 14 06:30:08 EDT 2002


Thomas Guettler wrote in comp.lang.python:
> Is there a way to skip some parts in a for loop?
> [...]
> Is there a way to skip some parts?
> 
> "continue" skips one element.

"continue" skips the rest of the for loop.

> But how can I skip several?

With "continue" :-)

-- Gerhard



More information about the Python-list mailing list