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