Count Number of Occurrences of a Substring in a Given String using Python July 16, 2021 Python 0 Comments 319 Views count method text = '123 456 12 123' count = text.count('123') print(count) # 2
Leave a Comment
Cancel reply