Answers for "how to get two value from two different lists in one for loop python"

17

looping through two lists python

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

multiple values in python loop for x,y

for x, y in zip(a, b):
    print x, y
Posted by: Guest on August-04-2020

Code answers related to "how to get two value from two different lists in one for loop python"

Python Answers by Framework

Browse Popular Code Answers by Language