I have the following sentence -
Sammy likes to swim in the ocean, likes to spin servers, and likes to smile.
I want to find the starting index number of the second occurrence of the word likes
But I don't want to use a starting index number or range as parameter of str.find()
function.
If possible I want to avoid regular expression as it is difficult to understand for starters.
NOTE: It is not mandatory to use str.find()
function. I just want to know whether it is possible without giving starting index or range as parameter.