Q82
What will be the output of the following Python code? sentence = 'horses are fast' regex = re.compile('(?P +) (?P +) (?P +)') matched = re.search(regex, sentence) print(matched.group(2))
A.
{'animal': 'horses', 'verb': 'are', 'adjective': 'fast'}
B.
('horses', 'are', 'fast')
C.
'horses are fast'
D.
'are'
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board