What does zip do?
Comprehensions and functional tools
Audio flashcard · 0:15Nortren·
What does zip do?
0:15
Zip takes multiple iterables and produces tuples of corresponding elements, stopping at the shortest. In Python 3 it is lazy. The strict variant zip with strict equals True, added in Python 3.10, raises an error if the iterables have different lengths.
docs.python.org