input: def create_people_dict(people: str) -> dict:
      """ Convert a string of names and ages into a dictionary. The input is a string
      where each name and age pair is separated by a comma, and the name and age are
      separated by a space with the age in parentheses. The output is a dictionary
      with names as keys and ages as values.
      >>> create_people_dict("John (20), Jane (40), Alex (18), Peter (45)")
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
output:     people_dict = {}
      pairs = people.split(", ")
      for pair in pairs:
          name, age = pair.split(" (")
          age = int(age.rstrip(")"))
          people_dict[name] = age
      return people_dict