input: Write a python function to print all even numbers from 1 to n.
  assert print_even_numbers(10) == [2, 4, 6, 8, 10]
  assert print_even_numbers(15) == [2, 4, 6, 8, 10, 12, 14]
  assert print_even_numbers(5) == [2, 4]
output: def print_even_numbers(n):
      return [i for i in range(1, n + 1) if i % 2 == 0]