input: 
  def build_square_dict(n: int) -> dict:
      """ Build a dictionary where each key is a number from 1 to n and the value is the square of that number.
      >>> build_square_dict(4)
      {1: 1, 2: 4, 3: 9, 4: 16}
      >>> build_square_dict(1)
      {1: 1}
      """
  
output:     square_dict = {}
      for i in range(1, n + 1):
          square_dict[i] = i * i
      return square_dict