input: Write a python function to generate a dictionary which contains (i, i*i) such that i is an int between 1 and N.
  assert generate_dict(5) == {1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
  assert generate_dict(3) == {1: 1, 2: 4, 3: 9}
  assert generate_dict(7) == {1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49}
output: def generate_dict(N):
      return {i: i * i for i in range(1, N + 1)}