gh-106318: Add examples for str.rindex() method (#143887)

Co-authored-by: Victor Stinner <[email protected]>
1 file changed