input: 
  def create_dict_from_list(people_list: str) -> dict:
      """ Takes a string representing a list of people with their names
      and ages, and returns a dictionary where the names are keys and the
      ages are values.
      >>> create_dict_from_list('John (20), Jane (40), Alex (18), Peter (45)')
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
  
output:     people_dict = {}
      people = people_list.split(', ')
      for person in people:
          name, age = person.split(' (')
          age = int(age.rstrip(')'))
          people_dict[name] = age
      return people_dict