How I got answer as 7 in below given code | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

How I got answer as 7 in below given code

https://code.sololearn.com/cbq02aDa8A34/?ref=app

10th Mar 2022, 1:25 AM
SILENCEOID
SILENCEOID - avatar
2 Respuestas
+ 1
You are starting your search at index 4 therefore the first occurance of 'e' is at index 7. Index start at 0
10th Mar 2022, 1:31 AM
William Owens
William Owens - avatar
+ 1
10th Mar 2022, 1:51 AM
SILENCEOID
SILENCEOID - avatar