how to get the index of string in python code example Example: python string index od str.index(sub[, start[, end]] )