Skip to content

Glossary: Python Beyond the Basics

zip

Also written: zip(), strict=True

A function that walks through two or more lists together, giving one item from each per pass. `strict=True` raises an error if the lists differ in length instead of quietly cutting the longer one.

Where the book teaches it

Related terms

list comprehension