input: Write a function to create a Python dictionary with the names as keys and the ages as values from a given list of people in the format "Name (age)".
  
  def create_people_dict(people_list):
      people_dict = {}
      for person in people_list:
          name, age = person.rsplit(' ', 1)
          name = name.strip('()')
          age = int(age.strip('()'))
          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 (30)", "Bob (25)"]) == {'Alice': 30, 'Bob': 25}
  assert create_people_dict([]) == {}
output: def create_people_dict(people_list):
      people_dict = {}
      for person in people_list:
          name, age = person.rsplit(' ', 1)
          name = name.strip('()')
          age = int(age.strip('()'))
          people_dict[name] = age
      return people_dict