Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

map function using lambda in python

# Map function 

nums1 = [2,3,5,6,76,4,3,2]
sq = list(map(lambda a : a*a, nums1))
print(sq)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #map #function #lambda #python
ADD COMMENT
Topic
Name
7+3 =