SyntaxFix
Write A Post
Hire A Developer
Questions
You can use zip:
zip
>>> a = [1, 2, 3] >>> b = ['a', 'b', 'c'] >>> for x, y in zip(a, b): ... print x, y ... 1 a 2 b 3 c