Google Interview Question

What is zip() function in Python?

Interview Answer

Anonymous

Feb 21, 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.