Learn Before
Relation
Map() in Python
The Map() function can be used to apply a function to a sequence of elements.
An example:
def square(num): return num * num my_map = map(square, [1, 3, 9]) # my_map returns -> [1, 9, 81]
0
0
Updated 2021-04-28
Tags
Python Programming Language
Data Science