0
HELP ME PLEASE!!!
Write a function that determines how many times a given string enters a character string. word.
5 ответов
+ 8
Ekaterina Kadulina man, it's more like you're asking someone do to task for you. Unfortunately, SoloLearn works the other way around. You show your efforts and try for the same and if you're stuck at some point, the community is here to help you out.
+ 4
Ekaterina Kadulina Where is your try?
+ 3
Ekatarina, the code you posted are only 'fragments' which do not really work. please give us a description with sample string and whatever we need to understand.
May be you wnat to know how often a singe char occures in a given string?
Waiting for your response.
0
i dont understand how to write
0
a=input()
b=input
sum=0
while l :
n=a.find(b)
if n==-l:
break
else:
sum+=l
a=a[n+len(b):]
print (sum)