Even numbers

Report a typo

Suppose my_list is a list containing some numbers.
Which one is the correct way of creating a list of all the even numbers from it?

A.

even = list(map(lambda x: x % 2, my_list))

B.

even = list(filter(lambda x: x % 2 == 0, my_list))

C.

even = list(filter(lambda x: x % 2, my_list))
Select one option from the list
___

Create a free account to access the full topic