input: def create_dictionary_from_people_list(people_list: str) -> dict:
      """
      Takes a string containing names and ages in the format "Name (age)" and creates a dictionary
      with names as keys and ages as values.
  
      >>> create_dictionary_from_people_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