Login
From:
www.pythonmorsels.com
(Uncensored)
subscribe
Python's zip function - Python Morsels
https://www.pythonmorsels.com/looping-over-multiple-iterables/
links
backlinks
Roast topics
Find topics
Find it!
Need to loop over two (or more) iterables at the same time? Don't use range. Don't use enumerate. Use the built-in zip function. As you loop over zip you'll get the n-th item from each iterable.