def finding_letters(s,l):
i = 0
while i < len(s):
l = ''.join(l[i])
a = s.find(l[i])
return a
i = i + 1
calling
finding_letters('abcde',['ab','cd','e'])
should give me an output of 0,2,4
, but I only get output of 0
.
Anything I could do to fix this?