Run
my_list = [1, 2, 7, 4, 6, 9, 12, 16, 3] # Lamdba function with filter() result = filter(lambda x: x % 2 == 0, my_list) # Converting the returned iterable to a list result = list(result) print(result)
Output