input: Write a function to create a Python dictionary from a list of names and ages provided as input. The names should be the keys and the ages should be the values in the dictionary. If the list is empty, return an empty dictionary.
  
  def create_people_dict(people_list):
      if not people_list:
          return {}
      people_dict = {}
      for person in people_list:
          name, age = person.split(' ')
          age = int(age[:-1])
          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([])=={}
output: def create_people_dict(people_list):
      if not people_list:
          return {}
      people_dict = {}
      for person in people_list:
          name, age = person.split(' ')
          age = int(age[:-1])
          people_dict[name] = age
      return people_dict