input: Write a function that creates a Python dictionary from a list of people, where the names are keys and the ages are values.
  
  assert prepare_dict(['John (20)', 'Jane (40)', 'Alex (18)', 'Peter (45)'])=={'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
  assert prepare_dict([])=={}
  assert prepare_dict(['Alex (18)', 'Peter (45)', 'John (20)', 'Jane (40)'])=={'Alex': 18, 'Peter': 45, 'John': 20, 'Jane': 40}
  assert prepare_dict(['Sarah (30)', 'Michael (50)'])=={'Sarah': 30, 'Michael': 50}
  assert prepare_dict(['Robert (35)', 'Linda (60)', 'Robert (35)'])=={'Robert': 35, 'Linda': 60}
output: def prepare_dict(people):
      result = {}
      for person in people:
          name, age = person.split(' (')
          age = int(age[:-1])
          result[name] = age
      return result