1 # -*- coding: utf-8 -*- 2 """ 3 Created on Fri May 21 21:50:17 2021 4 5 @author: PC 6 """ 7 8 import re 9 def names(): 10 simple_string = """Amy is 5 years old, and her sister Mary is 2 years old. 11 Ruth and Peter, their parents, have 3 kids.""" 12 13 names = re.findall('[A-Z][a-z]*', simple_string) 14 #raise NotImplementedError() 15 print(names) 16 return names 17 18 assert len(names()) == 4