chevybow
0
Q:

rfind python

txt = "Mi casa, su casa."
x = txt.rfind("casa")

print(x) # 12 procura o ultimo
2
#Python rfind() method finds a substring in in the string and returns the highest index. It means it returns the index of most righmost matched subtring of the string. It returns -1 if substring not found.
2

New to Communities?

Join the community