solutions

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

tests

[]