input: 
  def create_age_dict(people: str) -> dict:
      """Given a string of names and ages in the format "Name1 (Age1), Name2 (Age2), etc",
      create a Python dictionary with names as keys and ages as values.
      >>> 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.split(", "):
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          age_dict[name] = age
      return age_dict