how to iterate over several lists?

kj no.email at please.post
Fri Jun 5 06:31:24 CEST 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