how to iterate over several lists?

kj no.email at please.post
Fri Jun 5 00:31:24 EDT 2009


In <mailman.1160.1244175201.8015.python-list at python.org> Chris Rebert <clp2 at rebertia.com> writes:

>Just add the lists together.

>for x in list_a + list_b:
>    foo(x)

Cool!  Thanks!

kynn
-- 



More information about the Python-list mailing list