python how to index text string code example Example: python string indexof s = "mouse" animal_letter = s.find('s') print animal_letter