input: 
  def print_primes_up_to(n: int) -> None:
      """Print all prime numbers up to and including n.
  
      >>> print_primes_up_to(10)
      2
      3
      5
      7
      >>> print_primes_up_to(20)
      2
      3
      5
      7
      11
      13
      17
      19
      """
      def is_prime(num: int) -> bool:
          for i in range(2, int(num ** 0.5) + 1):
              if num % i == 0:
                  return False
          return True
  
      for num in range(2, n + 1):
          if is_prime(num):
              print(num)
  
output:     def is_prime(num: int) -> bool:
          if num <= 1:
              return False
          for i in range(2, int(num ** 0.5) + 1):
              if num % i == 0:
                  return False
          return True
  
      for num in range(2, n + 1):
          if is_prime(num):
              print(num)