I stopped here, the loop no longer gives the next number. can you improve the loop or do it another way?
for x in text: index=text.index(x) if x=='s': print(index)
22