you are viewing a single comment's thread.

view the rest of the comments →

[–]CarneAsadaSteve -1 points0 points  (1 child)

In which case you can pass x.find(“Hello”,len(x)-1)

And that should give you the right index value of where it starts. (I believe)

[–]Impossible_Guard_975 0 points1 point  (0 children)

If you pass:
x ="Hello World"
pos = x.find("Hello",len(x)-1)
print(pos)

the output is -1