input: 
  from typing import List, Dict
  
  
  def create_dictionary_from_list(people_list: List[str]) -> Dict[str, int]:
      """ Convert a list of strings with names and ages in the format "Name (age)" to a dictionary
      where each name is a key and the age is the value.
      >>> create_dictionary_from_list(["John (20)", "Jane (40)", "Alex (18)", "Peter (45)"])
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
  
output:     result = {}
      for person in people_list:
          name, age = person.split(' (')
          age = int(age.rstrip(')'))
          result[name] = age
      return result