[Tutor] for loop

Alan Gauld alan.gauld at btinternet.com
Wed Jun 11 05:35:39 CEST 2008


"Tiago Saboga" <tiagosaboga at gmail.com> wrote 

> The count var is never updated. What about:
> 
> for i in someArray[1:]:
>    print i

Yes, that's much better than my enumerate version! :-)


Alan G



More information about the Tutor mailing list