Parallel Iteration With Python's zip() Function – Real Python

Using the Python zip() Function for Parallel Iteration

Liam Pulsifer

Python’s 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:

  • How 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 zip()

Parallel Iteration With Python's zip() Function

6 Lessons 35m

Liam Pulsifer Liam Pulsifer

Liam is a software engineer and avid Pythonista. When he's not writing code to automate all of his daily tasks, you can often find him running, playing basketball and tennis, reading, or eating good food.

» More about Liam


Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Jaya Zhané

Aldren Santos

« Browse All Courses