Question: i am getting a typeError when I try to run my assert function. Don't know what I am missing. Home Page - Select or create
Home Page - Select or create a notebook @ Untitledt - Juoler Notebook 2 Logo Assignments Coursera Cintroduction to Data Science in Python - Home Jupyter Untitled4 lunt Checkpoint: 6 minutes ago autonaved F Edit View Insert C Karni Widgets HD + Run Code True Python 09 In [4): import re det names : simple string = 'Any is 5 years old, and her sister Mary 5 2 years old. Ruth and Peter, their parents, have 3 namese re.findall(IA-Z) [a-zj.", simple_string) return (names) return(len (nanes)) namesto I'Any', 'Mary', 'Ruth', 'Peter'] 4 In 16): assert len(names()), "There are four names in the simple_string" L'Any''Mary', 'Ruth', 'Peter' TypeError Traceback (most recent call last)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
