input: Write a function to convert a list of people with their ages into a dictionary where the names are keys and the ages are values. If the 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[:-1])
          result[name] = age
      return result