input: from typing import List
  
  def print_numbers(n: int) -> List[int]:
      """ Prints out the numbers from 1 to the given number n and returns the list of these numbers.
      >>> print_numbers(5)
      [1, 2, 3, 4, 5]
      """
      numbers = []
      for i in range(1, n + 1):
          print(i)
          numbers.append(i)
      return numbers
output:     numbers = []
      for i in range(1, n + 1):
          print(i)
          numbers.append(i)
      return numbers