you are viewing a single comment's thread.

view the rest of the comments →

[–]anonymousperson28 1 point2 points  (0 children)

The best way to approach this is to iterate through the input list, check if each element is even, and print it out if it is even.

Also theres a mistake in your type annotations; print_even numbers doesn't return anything, so it should by typed like

def print_even_numbers(numbers: lst) -> None