Find the Index of Last Occurrence of a Substring in a String using Python July 18, 2021 Python 0 Comments 414 Views rfind method text = '123 456 56 78' idx = text.rfind('56') print(idx) # 8
Leave a Comment
Cancel reply