What will be the output of the following Python code? [code]re.match('sp(.*)am', 'spam')[/code]

What will be the output of the following Python code?
Code:
re.match('sp(.*)am', 'spam')
A. <_sre.SRE_Match object; span=(1, 4), match=’spam’>
B. <_sre.SRE_Match object; span=(0, 4), match=’spam’>
C. No output
D. Error
 

Tìm kiếm

Back
Top