how tto loop through 2 values in two differrnt lists python code example
Example 1: looping through two lists python
for f, b in zip(foo, bar):
print(f, b)
Example 2: iterate over list and select 2 values together python
>>> lis = (669256.02, 6117662.09, 669258.61, 6117664.39, 669258.05, 6117665.08)
>>> it = iter(lis)
>>> for x in it:
... print (x, next(it))
...
669256.02 6117662.09
669258.61 6117664.39
669258.05 6117665.08