Answers for "use lambda to map values"

8

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)
Posted by: Guest on August-07-2020
1

find elements array lamda python

result = [filter(lambda x: (x % 2 == 0), [1, 2, 3])]
Posted by: Guest on November-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language