input: Write a function to create a Python dictionary with the names of people as keys and their corresponding ages as values from a given input string of names and ages.
  
  def create_people_dict(people_input):
      people_list = people_input.split(", ")
      people_dict = {}
      for person in people_list:
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          people_dict[name] = age
      return people_dict
  
  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 (25), Bob (30), Charlie (22)") == {'Alice': 25, 'Bob': 30, 'Charlie': 22}
  assert create_people_dict("") == {}
  assert create_people_dict("Sam (15)") == {'Sam': 15}
  assert create_people_dict("David (50), Eve (45)") == {'David': 50, 'Eve': 45}
output: def create_people_dict(people_input):
      people_list = people_input.split(", ")
      people_dict = {}
      for person in people_list:
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          people_dict[name] = age
      return people_dict