Python equivalent for perl's "next"-statement?

Gerhard Häring gh at ghaering.de
Wed Oct 22 07:40:01 EDT 2003


Eric Wichterich wrote:
> Hello Pythonistas,
> 
> does anyone know an equivalent python statement for perl's 
> "next"-statement?
> (Perl's "next" skips a loop cycle and continues with the next loop cycle 
> - it does not abort the whole loop).

It's the 'continue' statement.

-- Gerhard






More information about the Python-list mailing list