Find the Index of First Occurrence of a Substring in a String using Python July 17, 2021 Python 0 Comments 551 Views find method text = '123 456 56 78' idx = text.find('56') print(idx) # 5
Leave a Comment
Cancel reply