while loop python 2 lists code example
Example 1: looping through two lists python
for f, b in zip(foo, bar):
print(f, b)
Example 2: multiple values in python loop for x,y
for x, y in zip(a, b):
print x, y
for f, b in zip(foo, bar):
print(f, b)
for x, y in zip(a, b):
print x, y