How To/python/
#!python """ string.rfind(string txt) -> int Feturn last occurence of txt in string. To find first occurence of txt use string.find(). Returns -1 if txt was not found. """ text = "Hello world" print text.rfind("o") #7 print text.rfind("ll") #2