def myfind(S,T):
i=0
while i<=len(S)-len(T)+1:
if T==S[i:i+len(T)]:
return i+1
i +=1
return -1
print(myfind("1234","23"))

def myfind(S,T):
i=0
while i<=len(S)-len(T)+1:
if T==S[i:i+len(T)]:
return i+1
i +=1
return -1
print(myfind("1234","23"))