How to use the Zip function in Python Part 1

Aaron S
Analytics Vidhya
5 min readJan 23, 2020

--

Python is an intuitive language and there are lots of resources to get you through the basics of the language. Once the basics are acquired there is much more to learn! The zip function is one of the 69 built-in functions that Python gives you which can be very useful which beginners don’t get exposed to.

For more information on the built-in functions please see Trey Hunner’s excellent article on the ones to know about and ones to be aware of here.

Learning built-in functions in a vacuum can be hard to know where to use these functions and therefore it is important to see examples of functions applied.

In this set of articles, you will learn:

  1. The definition of an iterable
  2. The definition of an iterator
  3. The definition of the zip function
  4. The syntax of the zip function
  5. The zip function with one argument
  6. The zip function with more than two arguments
  7. The zip function with unequal length iterables
  8. Unpacking of the zip function
  9. Examples of how I have personally used the zip function in my scripts.

--

--

Aaron S
Analytics Vidhya

Hello! My name is Aaron. Healthcare professional with an interest in python, technology, education and healthcare.I run coding-medic.com for python enthusiasts.