input: Write a function to create a Python dictionary that maps names to their corresponding ages, given a list of names and ages in the format "Name (Age)". If the input list is empty, return an empty dictionary.
  assert create_age_dict(["John (20)", "Jane (40)", "Alex (18)", "Peter (45)"]) == {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
  assert create_age_dict([]) == {}
output: def create_age_dict(name_age_list):
      if not name_age_list:
          return {}
      age_dict = {}
      for item in name_age_list:
          name, age = item.split(' (')
          age = int(age.rstrip(')'))
          age_dict[name] = age
      return age_dict