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

A
Sort a list
B
Apply a function to all items in an iterable
C
Remove items
D
Create a dictionary
Solution:

map() applies a specified function to all items in an iterable and returns a map object.

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!