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