+ 12

What happens in this code?? It print yes but y?

import re st=r"f(spa)*" if(re.match(st,"ffff")): print("yes")

1st Mar 2017, 3:08 PM
GOKULNATH MADHIVANAN
GOKULNATH MADHIVANAN - avatar
1 Answer
+ 13
Thank you 👍
3rd Mar 2017, 3:33 PM
GOKULNATH MADHIVANAN
GOKULNATH MADHIVANAN - avatar