+ 2

Finding substrings in a string by python

I have a code to find substring in a string but I am struggling by part related to " if". could anyone please help me by that. Also I would be happy by any kinda other codes for finding how many times a substring repeats in a string. how many occurance. Thank you in advance https://code.sololearn.com/cIMmLg0vCxV6/?ref=app

18th Feb 2018, 1:42 PM
Shabnam
Shabnam - avatar
2 Antworten
+ 7
https://code.sololearn.com/cUWo2ihk9pvv/?ref=app
18th Feb 2018, 3:59 PM
Louis
Louis - avatar
0
Dear kind Louis, Thank you so much. I am trying to install regex but it seems I got some problem in installing. I am going to check your kind code ❤❤❤
18th Feb 2018, 4:02 PM
Shabnam
Shabnam - avatar