Domanda di colloquio di Google

What is zip() function in Python?

Risposta di colloquio

Anonimo

21 feb 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.