0

HELP ME PLEASE!!!

Write a function that determines how many times a given string enters a character string. word.

2nd Apr 2019, 6:50 AM
Ekaterina Kadulina
Ekaterina Kadulina - avatar
5 Respostas
+ 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.
2nd Apr 2019, 7:42 AM
Шащи Ранжан
Шащи Ранжан - avatar
+ 4
Ekaterina Kadulina Where is your try?
2nd Apr 2019, 6:54 AM
KrOW
KrOW - avatar
+ 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.
2nd Apr 2019, 9:22 AM
Lothar
Lothar - avatar
0
i dont understand how to write
2nd Apr 2019, 7:41 AM
Ekaterina Kadulina
Ekaterina Kadulina - avatar
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)
2nd Apr 2019, 7:45 AM
Ekaterina Kadulina
Ekaterina Kadulina - avatar