Python’s built-in map() method provides a convenient way to do mapping—the processing and transformation of all the elements in an iterable without resorting to an explicit for loop. To apply a function to each item in an iterable and return a new iterable is the primary use case for map(). Python’s map() function is one of the libraries that facilitates functional programming. What you’ll study in this course
- How Python’s
map()
works - How to transform different types of Python iterables using
map()
- How to combine
map()
with other functional tools to perform more complex transformations - What tools you can use toreplace
map()
and make your code morPythonic