+ 2
Any idea why this code does not work?
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
+ 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
+ 3
Done, sorry it took a while i was doing something else
https://code.sololearn.com/cesCIAFH5oc5/?ref=app
+ 2
dear Obbu, thank you so much. so I must get its len?
+ 2
Dear Obbu, Thank you so much for your warm help❤❤
+ 2
updated the code with an explination
0
Thank you so much. It was really kind of you dear Obbu. could you kindly please explain about if part?
0
Omg!! why I could not get it!! I just got it. awww Thank youuuuu
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 ❤❤❤