What is map function in python?
![](https://pythonpoint.net/wp-content/uploads/2020/12/What-is-method-in-python_-10-1024x576.jpg)
Map() function returns map object which is an iterator.
Syntax:-
map(function, iterable, ....)
l=['python', 'Java', 'C'] a=list(map(list, l)) print(a)
![](https://pythonpoint.net/wp-content/uploads/2020/12/Screenshot-952-1024x520.png)
This is all about the map() function in python.
Subscribe
Login
Please login to comment
0 Discussion