• guess the second index

Question related to mission Second Index

 

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)

show 0 and 0