What does the map function do?
Comprehensions and functional tools
Audio flashcard · 0:15Nortren·
What does the map function do?
0:15
Map takes a function and one or more iterables and returns an iterator that applies the function to each element. In Python 3, map is lazy and returns a map object, not a list. For most cases, a generator expression or list comprehension is considered more readable than map.
docs.python.org