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, 21.06.2019 19:50
Python write an expression that executes the loop body as long as the user enters a non-negative number. note: if the submitted code has an infinite loop, the system will stop running the code after a few seconds and report "program end never reached." the system doesn't print the test case that caused the reported message. sample outputs with inputs: 9 5 2 -1
Answers: 3
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
While inserting images, the picture command is usually used to insert photos from a digital camera, and the clip art command is usually used to a.edit the sizes and other characteristics of photos that have been inserted. b.take a screenshot of an image and copy it to the clipboard for pasting. c.search for drawings or other images from a library of prepared pictures. d.make illustrations using lines and shapes that are easy to manipulate.
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
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
English, 30.03.2020 01:33
question
Mathematics, 30.03.2020 01:33