input: Write a function to create a dictionary from a list of people with their names as keys and ages as values. If the input list is empty, return an empty dictionary.
  assert parse_people_dict(['John (20)', 'Jane (40)', 'Alex (18)', 'Peter (45)']) == {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
  assert parse_people_dict([]) == {}
output: def parse_people_dict(people_list):
      if not people_list:
          return {}
      result = {}
      for person in people_list:
          name, age = person.split(' (')
          age = int(age.rstrip(')'))
          result[name] = age
      return result