Answers for "loop through two lists at once with different number of values python"

16

looping through two lists python

for f, b in zip(foo, bar):
    print(f, b)
Posted by: Guest on March-30-2020
1

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
Posted by: Guest on April-13-2021

Code answers related to "loop through two lists at once with different number of values python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language