def find_last(search, target):
for index, character in reversed(list(enumerate(search))):
if character in target:
return index
else:
return -1
suppose search="aaaaa" and target="aa", output should=3, not 4. I am trying to get the last position where the two strings compare