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

 i am getting a typeError when I try to run my
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 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) in modules ----> 1 assert len names()), "There are four names in the simple string" TypeError: object of type 'NoneType' has no len() In 1: .. APS &tv A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!