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
- Error
- Yes
- 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