input: from typing import List
  
  def print_odd_numbers(n: int) -> List[int]:
      """Print all odd numbers from 1 to n.
      >>> print_odd_numbers(10)
      [1, 3, 5, 7, 9]
      >>> print_odd_numbers(5)
      [1, 3, 5]
      """
      return [i for i in range(1, n + 1) if i % 2 != 0]
output:     return [i for i in range(1, n + 1) if i % 2 != 0]