python search a string in another string get last result code example
Example: python search a string in another string get last result
# Where in the text is the last occurrence of the string "casa"?
txt = "Mi casa, su casa."
x = txt.rfind("casa")
print(x)