subject

How to fix the incorrect regex between `### BEGIN CODE` and `### END CODE` to generate a list of names in the simple_string? import re
def names():
simple_string = """Amy is 5 years old, and her sister Mary is 2 years old.
Ruth and Peter, their parents, have 3 kids."""
### BEGIN CODE
pattern = r'[A-Za-z]?'
match = re. finditer(pattern, simple_string)
### END CODE
# YOUR CODE HERE
raise NotImplementedError()
return match
names()
assert len(names()) == 4, "There are four names in the simple_string"

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Which type of file can be used to import data into a spreadsheet?
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
You know the right answer?
How to fix the incorrect regex between `### BEGIN CODE` and `### END CODE` to generate a list of nam...
Questions
question
Mathematics, 24.11.2019 14:31
question
Mathematics, 24.11.2019 14:31