"str.rindex(sub[, start[, end]]) Like [rfind()](https://docs.python.org/3/library/stdtypes.html#str.rfind) but throws exception ValueError when the substring sub is not found."