index of elemnt in string python code example
Example 1: python string indexof
s = "mouse"
animal_letter = s.find('s')
print animal_letter
Example 2: python string index od
str.index(sub[, start[, end]] )
s = "mouse"
animal_letter = s.find('s')
print animal_letter
str.index(sub[, start[, end]] )