input: 
  from typing import Dict, List
  
  def create_people_dict(people_list: List[str]) -> Dict[str, int]:
      """
      Take a list of strings where each string is in the format 'Name (Age)' and 
      create a dictionary with the names as keys and the ages as values.
      >>> create_people_dict(['John (20)', 'Jane (40)', 'Alex (18)', 'Peter (45)'])
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
  
output:     people_dict = {}
      for person in people_list:
          name, age = person.split(' (')
          age = int(age.rstrip(')'))
          people_dict[name] = age
      return people_dict