What is map function in Python?

By ayush goel in 22 Sep 2023 | 04:16 pm
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

What is map function in Python?

22 Sep 2023 | 04:16 pm
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

In Python, the `map()` function is a built-in function used to apply a specified function to each item in an iterable (such as a list, tuple, or dictionary) and return a map object (an iterator) that contains the results of applying the function to each item. You can convert the map object into other iterable data types like a list or tuple using `list()` or `tuple()` if needed.


22 Sep 2023 | 05:52 pm
0 Likes

Report

Please describe about the report short and clearly.