input: from typing import List
  
  def create_people_dict(people: List[str]) -> dict:
      """ Convert a list of people strings to a dictionary where the names are keys and the ages are values.
      Each person string is in the format "Name (Age)".
      >>> 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:
          name, age = person.split(' (')
          age = int(age.rstrip(')'))
          people_dict[name] = age
      return people_dict