input: 
  def generate_square_dictionary(n: int) -> dict:
      """Generate a dictionary where the keys are numbers from 1 to n (inclusive) and the values are their squares.
      >>> generate_square_dictionary(5)
      {1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
      >>> generate_square_dictionary(3)
      {1: 1, 2: 4, 3: 9}
      """
      d = {}
      for i in range(1, n + 1):
          d[i] = i**2
      return d
  
output:     d = {}
      for i in range(1, n + 1):
          d[i] = i**2
      return d