Find 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'(.*) than (.*?) .*', x, re.M|re.I)

if y:
   print ("True :", y.group())
   print ("False : ", y.group(1))

else:
   print ("Yes")
Options
  1. Error
  2. Yes
  3. True : Nothing you wear is more important than your smile

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

False : Nothing you wear is more important

Related Posts

Close Bitnami banner
Bitnami