Like rfind() but raises ValueError when the substring sub is not found.
str.rindex(sub[, start[, end]])