use lambda to map values code example
Example 1: 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)
Example 2: find elements array lamda python
result = [filter(lambda x: (x % 2 == 0), [1, 2, 3])]