Choose The Function Whose Output Can Be Ltsresrematch Object #964
Choose the function whose output can be: <_sre.SRE_Match object; span=(4, 8), match=’aaaa’>.
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Regular Expressions - Python Regular Expressions - Quiz No.2.
Choose the function whose output can be: <_sre.SRE_Match object; span=(4, 8), match=’aaaa’>.
>>> re.search(‘aaaa’, “alohaaaa”, 0)
>>> re.match(‘aaaa’, “alohaaaa”, 0)
>>> re.match(‘aaa’, “alohaaa”, 0)
>>> re.search(‘aaa’, “alohaaa”, 0)