Python basic course- Using map() function in Python

Опубликовано: 11 Февраль 2026
на канале: EasyDataScience
48
1

map() function returns a map object(which is an iterator) of the results after applying the given function to each item of a given iterable (list, tuple etc.) . The returned value from map() (map object) then can be passed to functions like list() (to create a list), set().
Syntax :
map(fun, iter)
Parameters :
fun : It is a function to which map passes each element of given iterable.
iter : It is a iterable which is to be mapped.


#python
#map
#function