Answered step by step
Verified Expert Solution
Question
1 Approved Answer
## Question 1 : names ( ) Fix the incorrect regex between ' ### FIX CODE BELOW' and ### FIX CODE ABOVE' to generate a
## Question : names
Fix the incorrect regex between ### FIX CODE BELOW' and ### FIX CODE ABOVE' to generate a list of names in the simplestring.
: def names:
import re
simplestring Amy is years old, and her sister Mary is years old.
Ruilikend Peter their parents, have kids."""
pattern
match refindallpattern simplestring
### FIX CODE ABOVE
# YOUR CODE HERE
return match
: assert len "There are four names in the simplestring"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started