input: from typing import Dict, Tuple
  
  def create_people_dict(people_list: str) -> Dict[str, int]:
      """
      Convert a string containing people's names and ages into a dictionary.
      Each name and age is separated by a comma and the name and age are separated by a space,
      with the age enclosed in parentheses.
      
      Example:
      >>> create_people_dict('John (20), Jane (40), Alex (18), Peter (45)')
      {'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
      """
output:     people_dict = {}
      for person in people_list.split(', '):
          name, age = person.split(' (')
          age = int(age.rstrip(')'))
          people_dict[name] = age
      return people_dict