Answers for "super string counter"

0

super string counter

def count_substring(string , sub_string):
    count = 0
    for i in range(len(string)):
        if string[i:i+len(sub_string)]==sub_string:
            count+=1
    return count
Posted by: Guest on July-05-2021

Browse Popular Code Answers by Language