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