how to get the index of a string in a string in python code example Example: python string indexof s = "mouse" animal_letter = s.find('s') print animal_letter