input: 
  def create_people_dictionary(people: str) -> dict:
      """
      Given a list of names and ages in the format "Name (Age)", create a dictionary
      with the names as keys and the ages as values.
      
      Example:
      for create_people_dictionary("John (20), Jane (40), Alex (18), Peter (45)")
      the output should be {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
  
output:     people_dict = {}
      people_list = people.split(", ")
      for person in people_list:
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          people_dict[name] = age
      return people_dict