1.

What gets printed?import resum = 0pattern = ‘back’if re.match(pattern, ‘backup.txt’):sum + = 1if re.match(pattern, ‘text.back’):sum + = 2if re.search(pattern, ‘backup.txt’):sum + = 4if re.search(pattern, ‘text.back’):sum + = 8print sum

Answer»

Gets printed the number 13. 



Discussion

No Comment Found