Find a string Solution Code in Python 2


s1 = str(raw_input())
s2 = str(raw_input())
cnt = 0
for i in range(len(s1)):
    if s1[i:].startswith(s2):
cnt += 1
print cnt

Comments