s='Hello world' s.rfind('l')
# Where in the text is the last occurrence of the string "casa"? txt = "Mi casa, su casa." x = txt.rfind("casa") print(x)