input: 
  def create_people_dict_from_list(people: str) -> dict:
      """ Create a Python dictionary with the names as keys and the ages as values from a given list of people with their ages.
      >>> create_people_dict_from_list("John (20), Jane (40), Alex (18), Peter (45)")
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
  
output:     people_dict = {}
      for person in people.split(", "):
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          people_dict[name] = age
      return people_dict