[Tutor] Iterating over two sequences in "parallel"

Lie Ryan lie.1296 at gmail.com
Sat Nov 28 13:13:35 CET 2009

On 11/28/2009 10:03 PM, Jose Amoreira wrote:
> Yes, Robert, that does it! Thanks a lot!
> Have a nice weekend!
> Jose

don't forget zip() built-in function:

for x, y in zip(list1, list2):
     print x, y

More information about the Tutor mailing list