get index of a character in a string python3 code example Example: python string index od str.index(sub[, start[, end]] )