input: Write a function to create a Python dictionary from a list of people's names and ages. The function should take a string as input where names and ages are provided in the format "Name (Age)" separated by commas. The function should return a dictionary where the keys are the names and the values are the ages.
  assert create_people_dict("John (20), Jane (40), Alex (18), Peter (45)") == {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
  assert create_people_dict("Alice (30), Bob (25), Charlie (35)") == {'Alice': 30, 'Bob': 25, 'Charlie': 35}
  assert create_people_dict("") == {}
output: def create_people_dict(s):
      if not s:
          return {}
      people = s.split(", ")
      result = {}
      for person in people:
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          result[name] = age
      return result