Solutions will be available when this assignment is resolved, or after a few failing attempts.

Even numbers using list comprehensions

Write a function that receives a list of numbers and returns only the even elements. You must use List comprehensions to solve it.

even_numbers([5, 4, 3, 2, 1]) == [4, 2]

Test Cases


def even_numbers(a_list): pass