Ask Question
20 July, 03:09

In Python, what would I use if I wanted to iterate through two or more lists at the same time?

+3
Answers (2)
  1. 20 July, 04:21
    0
    Use the zip () function

    l1 = [1, 2, 3, 4, 5]

    l2 = ['a', 'b', 'c', 'd', 'e']

    for pair in zip (l1, l2):

    print (pair)
  2. 20 July, 07:08
    0
    ZIP IT that's how ...
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “In Python, what would I use if I wanted to iterate through two or more lists at the same time? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers