Parallel Iteration With Python's zip() Function (Overview)
zip() function creates an iterator that will aggregate elements from two or more iterables. You can use the resulting iterator to quickly and consistently solve common programming problems, like creating dictionaries. In this course, you’ll discover the logic behind the Python
zip() function and how you can use it to solve real-world problems.
By the end of this course, you’ll learn:
zip()works in both Python 3 and Python 2
- How to use the Python
zip()function for parallel iteration
- How to create dictionaries on the fly using
Hi, and welcome to this Real Python video tutorial series on the Python
zip() function. Over the course of this series, you’re going to learn how
zip() works in both Python 3 in Python 2, and of course, why you might want to use it in the first place.
You’ll also learn how to use the
zip() function for parallel iteration, which is its main intended purpose, and then you’ll learn some other interesting applications of
zip() as well, like how to create dictionaries on the fly and how to sort multiple iterables with the
Become a Member to join the conversation.