1.

What is the output of the following? sentence = 'horses are fast' regex = re.compile('(?P\w+) (?P\w+) (?P\w+)') matched = re.search(regex, sentence) print(matched.groups())

A. {‘animal’: ‘horses’, ‘verb’: ‘are’, ‘adjective’: ‘fast’}
B. (‘horses’, ‘are’, ‘fast’)
C. horses are fast’
D. ‘are’
Answer» C. horses are fast’


Discussion

No Comment Found