input: 
  def create_age_dictionary(people: List[str]) -> dict:
      """ Takes a list of people in the format "Name (Age)" and creates 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:
          name, age = person.split(' (')
          age = int(age[:-1])
          age_dict[name] = age
      return age_dict