Thursday, November 7, 2019

Python map function

The map() function applies a given function to each item of an iterable (list, tuple etc.) and returns a list of the results.
The syntax of map() is:

map() Parameter
  • function – map() passes each item of the iterable to this function.
  • iterable iterable which is to be mapped
You can pass more than one iterable to the map() function.




No comments:

Post a Comment