Determine the output

What will be the output of the given snippet of code?

import re

x = "Nothing you wear is more important than your smile"

y = re.search( r'more', x, re.M|re.I)
if y:
   print ("True :", y.group())

else:
   print ("Yes")

z= re.match( r'more', x, re.M|re.I)
if z:
   print ("Fine :", z.group())
else:
   print ("No")
Options

T1.rue : more

Fine: more

2.True : Nothing you wear is more important than your smile

No

3.True : more

No

4.Yes

No

Related Posts

Close Bitnami banner
Bitnami