You are viewing a single comment's thread. Return to all comments →
def count_substring(s, ss): c=0 n=len(ss) for i in range(0,len(s)): if s[i : n+i]==ss: c+=1 return c
def count_substring(s, ss): c=0 n=len(ss) for i in range(0,len(s)): if s[i : n+i]==ss: c+=1
return c
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 →