input: Write a function to create a Python dictionary with names as keys and ages as values from the given input list of people. Each person is represented in the format 'Name (Age)'. If the input list is empty, return an empty 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([])=={}
output: def create_people_dict(people):
      result = {}
      for person in people:
          name, age = person.split(' (')
          age = int(age.rstrip(')'))
          result[name] = age
      return result