Python‎ > ‎str‎ > ‎

str.rindex()


Introduction
Index the character in the string.

Syntax
str.rindex()->integer

Parameters
str=string

Examples
The method is:
 >>> "Python Lake".rindex("Lake")
7
>>> 
>>> "Python Lake learning Centre".rindex("Centre")
21
>>>



Comments