Published: Wednesday, Dec 26, 2007 Last modified: Monday, Apr 8, 2024

This: Also uses zip

16:23 < hendry> What is it called when you iterate through two iteratable objects at the same time? I want to do something like : for i, j in list1, list2: # but it does not work

16:24 < mg> hendry: zip()

16:25 < mg> So ... for i, j in zip(list1, list2)