input: Write a python function to create a dictionary of numbers and their squares from 1 to n.
  assert generate_squares_dict(5) == {1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
  assert generate_squares_dict(3) == {1: 1, 2: 4, 3: 9}
  assert generate_squares_dict(1) == {1: 1}
output: def generate_squares_dict(n):
      return {i: i * i for i in range(1, n + 1)}