python right search code example Example: how to find position of a character in a string from right sidepython >>> s = 'hello' >>> s.rfind('l') 3