Fill in the blank:- | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Fill in the blank:-

Answer:- [2, 8] nums = [1, 2, 8, 3, 7] res = list(******(lambda x: x%2 == 0, nums)) print (res)

31st Mar 2020, 11:23 AM
Mohit Namdev
Mohit Namdev - avatar
1 Answer
+ 1
nums = [1, 2, 8, 3, 7] res = list(filter(lambda x: x%2 == 0, nums)) print (res)
31st Mar 2020, 11:29 AM
John Robotane
John Robotane - avatar