input: 
  from typing import Dict
  
  def create_age_dictionary(people_list: str) -> Dict[str, int]:
      """ Takes a string with names and corresponding ages and returns a dictionary
      with the names as keys and the ages as values.
      >>> create_age_dictionary("John (20), Jane (40), Alex (18), Peter (45)")
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
  
output:     age_dict = {}
      for person in people_list.split(", "):
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          age_dict[name] = age
      return age_dict