Simple python iteration question

Lawrence Oluyede raims at dot.com
Tue Aug 14 12:27:37 EDT 2007


Bryan <b at bcc.com> wrote:
> How do I do this?

for i, item in enumerate(l):
    print i, item


-- 
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand 
something when his salary depends on not
understanding it" - Upton Sinclair



More information about the Python-list mailing list