Python’s zip() function

Dr. Soumen Atta, Ph.D.
2 min readMar 17, 2020

In this tutorial, we will discuss a few important things about Python’s zip() function. Here, we consider Python3.

The zip() function takes iterables (can be zero or more), aggregates them in a tuple and returns it.

The syntax of the zip() function is: zip(iterables)

At first, we create an iterator object using zip().

numbers = list(range(5)) #
Dr. Soumen Atta, Ph.D.

Assistant Professor, Center for Information Technologies and Applied Mathematics, School of Engineering and Management, University of Nova Gorica, Slovenia