input: 
  def create_dictionary_from_list(people: str) -> dict:
      """ Takes a list of people in the format "Name (age)" separated by commas and creates a dictionary 
      with the names as keys and the ages as values.
      >>> create_dictionary_from_list("John (20), Jane (40), Alex (18), Peter (45)")
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
  
output:     people_list = people.split(", ")
      result_dict = {}
      for person in people_list:
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          result_dict[name] = age
      return result_dict