Check substring goes very slow
n = 100000 s1 = "x"*n + "y"*n + "x"*n s2 = "xx"*n print(s2 in s1)
It\'s on