Q. What is the purpose of the zip() function in Python?

A
Combine multiple iterables into tuples
B
Sort a list
C
Remove duplicates
D
Create a dictionary
Solution:

zip() aggregates elements from multiple iterables into tuples, useful for parallel iteration.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!