Do this as a list comprehension?

John Salerno johnjsal at
Fri Jun 6 19:38:12 CEST 2008

"Terry Reedy" <tjreedy at> wrote in message 
news:mailman.150.1212734707.1044.python-list at
> "Mensanator" <mensanator at> wrote in message
> news:bbd90051-36be-4378-9a27-2a47a5471d12 at

> Which is exactly the purpose of zip, or its specialization enumerate!

Thanks guys! Looks like the simplest is always the best yet again! :) 

More information about the Python-list mailing list