Light Mode
Dark Mode
guess the 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

Created: Feb. 12, 2020, 9:34 a.m.
Updated: Feb. 12, 2020, 10 a.m.
0
8
User avatar
Mateu52