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