string find index python code example
Example 1: python string indexof
s = "mouse"
animal_letter = s.find('s')
print animal_letter
Example 2: python string index
# Start from zero and the return value is exact index of first letter
s = "mouse"
animal_letter = s.find('s')
print animal_letter
# Start from zero and the return value is exact index of first letter