lists....order...

Sean 'Shaleh' Perry shalehperry at attbi.com
Wed Oct 9 21:00:21 EDT 2002


On Wednesday 09 October 2002 17:23, Mark McEahern wrote:
> > the only solution i could find:
> > for index in range(len(a)):
> > 	letter = a[index]
>
> Python 2.3's enumerate() solves this.
>
> // m
> -

how does enumerate work?




More information about the Python-list mailing list