input: from typing import List, Dict
  
  def create_age_dict(people: List[str]) -> Dict[str, int]:
      """ Given a list of people with their names and ages in the format: 'Name (Age)',
      create a dictionary where the keys are the names and the values are the ages.
      >>> create_age_dict(['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.rstrip(')'))
          age_dict[name] = age
      return age_dict