input: from typing import List, Dict
  
  
  def create_age_dictionary(people: List[str]) -> Dict[str, int]:
      """
      Create a dictionary from the list of people's names and ages.
      
      >>> 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