Question: ## 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
