Simple python iteration question

Lawrence Oluyede raims at
Tue Aug 14 18:27:37 CEST 2007

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

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

Lawrence, -
"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