input: Write a function to create a Python dictionary where the keys are the names from the provided list and the values are their corresponding ages. The function should take a single string input formatted as "name (age), name2 (age2), ...". If the input string is empty, the function should 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(s):
      if not s:
          return {}
      pairs = s.split(", ")
      result = {}
      for pair in pairs:
          name, age = pair.split(" (")
          age = int(age[:-1])
          result[name] = age
      return result