You are viewing a single comment's thread. Return to all comments →
def count_substring(string, sub_string): idx = string.find(sub_string) if idx == -1: return 0 else: return 1 + count_substring(string[(idx + 1):], sub_string)
Seems like cookies are disabled on this browser, please enable them to open this website
Find a string
You are viewing a single comment's thread. Return to all comments →