If the pattern is present at the current shift , then index j will become - 1 after the above loop
if j < 0 : NEW_LINE INDENT print ( " pattern ▁ occurs ▁ at ▁ shift ▁ = ▁ % d " % s ) NEW_LINE s += shift [ 0 ] NEW_LINE DEDENT else : NEW_LINE