[Tutor] foreach loops

Alan Gauld alan.gauld at freenet.co.uk
Tue Sep 12 20:07:43 CEST 2006


> Does python have foreach loops?  I don't see any
> mention of them in the docs.  Am I going to have to
> use Perl (gasp!) if I want my beloved foreach loop?

Its called a for loop in Python...

Or is there some extra magic in the Perl version that I'm missing?

Alan G.


More information about the Tutor mailing list