Python Recherchez une chaîne dans une autre chaîne obtenir le dernier résultat

# Where in the text is the last occurrence of the string "casa"?
txt = "Mi casa, su casa."

x = txt.rfind("casa")

print(x)
knavels