

MCQOPTIONS
Saved Bookmarks
1. |
Choose the function whose output can be: <_sre.SRE_Match object; span=(4, 8), match='aaaa'>. |
A. | >>> re.search(‘aaaa’, “alohaaaa”, 0) |
B. | >>> re.match(‘aaaa’, “alohaaaa”, 0) |
C. | >>> re.match(‘aaa’, “alohaaa”, 0) |
D. | >>> re.search(‘aaa’, “alohaaa”, 0) |
Answer» B. >>> re.match(‘aaaa’, “alohaaaa”, 0) | |