How could I (in Python 3) find the index of the second occurrence of a phrase in a string? My code so far is
result = string.index("phrase im looking for")
print (result)
which gives me the index for "Phrase im looking for" in the string "string". However, if "phrase im looking for" appears twice, and I want to find the index of the second occurrence (ignoring the first), how could I go about this?