Parallel Iteration With Python's zip() Function (Overview)
Python’szip() function creates aniterator 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 Pythonzip() function and how you can use it to solve real-world problems.
By the end of this course, you’ll learn:
- How
zip()works in both Python 3 and Python 2 - How to use the Python
zip()function forparallel iteration - How tocreate dictionaries on the fly using
zip()
00:00Hi, and welcome to thisReal Python video tutorial series on the Pythonzip() function. Over the course ofthis series,you’re going to learn howzip() works in both Python 3 in Python 2,and of course, why you might want to use it in the first place.
00:15You’ll also learn how to use thezip() function for parallel iteration,which is its main intended purpose,and then you’ll learn some other interesting applications ofzip() as well,like how to create dictionaries on the fly and how to sort multiple iterableswith thezip() function.
Course Contents

