Python program to filter even values from list using lambda function
a = [3, 2, 1, 4] # example list b = filter(lambda x: x % 2 == 0, a) print(*b) # output: 2 4
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment