18th Feb 2018, 2:13 PM
Shabnam
Shabnam - avatar
9 Antworten
+ 5
it will never be equal to pattern because it is going through text one character at a time therefore it cannot equal 3 characters
18th Feb 2018, 2:17 PM
Obbu
Obbu - avatar
+ 4
ok so i dont know how to make it count overlapping patterns however if it dosnt overlap just use print(text.count(pattern) ill see if i can do overlapping patterns but i cant make promises
18th Feb 2018, 2:40 PM
Obbu
Obbu - avatar
+ 3
Done, sorry it took a while i was doing something else https://code.sololearn.com/cesCIAFH5oc5/?ref=app
18th Feb 2018, 3:04 PM
Obbu
Obbu - avatar
+ 2
dear Obbu, thank you so much. so I must get its len?
18th Feb 2018, 2:18 PM
Shabnam
Shabnam - avatar
+ 2
Dear Obbu, Thank you so much for your warm help❤❤
18th Feb 2018, 2:41 PM
Shabnam
Shabnam - avatar
+ 2
updated the code with an explination
18th Feb 2018, 3:37 PM
Obbu
Obbu - avatar
0
Thank you so much. It was really kind of you dear Obbu. could you kindly please explain about if part?
18th Feb 2018, 3:05 PM
Shabnam
Shabnam - avatar
0
Omg!! why I could not get it!! I just got it. awww Thank youuuuu
18th Feb 2018, 3:28 PM
Shabnam
Shabnam - avatar
0
dear Obbu, you explained it great. You are an amazing teacher . how clear❤❤ I appreciate it and I thank you the time you put for explaining to me. I dont know how to say thank you ❤❤❤
18th Feb 2018, 3:40 PM
Shabnam
Shabnam - avatar