input: 
  def create_people_dict(people: str) -> dict:
      """Create a Python dictionary from a list of people with their ages, where names are keys and ages are values.
      The input is a string where each person is represented as "Name (Age)".
      >>> create_people_dict("John (20), Jane (40), Alex (18), Peter (45)")
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
  
output:     people_list = people.split(", ")
      people_dict = {}
      for person in people_list:
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          people_dict[name] = age
      return people_dict