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