Question d’entretien chez Google

What is zip() function in Python?

Réponse à la question d'entretien

Utilisateur anonyme

21 févr. 2021

Python zip() function returns a zip object, which maps a similar index of multiple containers. It takes an iterable , convert into iterator and aggregates the elements based on iterables passed. It returns an iterator of tuples.