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