input: Write a function to create a Python dictionary from a list of people, where each name from the list is a key and the corresponding age is the value. Return the resulting dictionary.
  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("") == {}
  assert create_people_dict("Sam (10)") == {'Sam': 10}
output: def create_people_dict(people_str):
      result = {}
      if people_str:
          for person in people_str.split(", "):
              name, age = person.split(" (")
              age = int(age.rstrip(")"))
              result[name] = age
      return result