0
Whatâs wrong with this code?
import re quote = r"Always do your best. Your best is going to change from moment to moment; it will be different when you are healthy as opposed to sick. Under any circumstance, simply do your best, and you will avoid self-judgment, self-abuse and regret" word = input() print(len(re.findall(quote, word))) Iâve applied the same function to some statements and theyâve worked fine except this code.. Thank you!
2 Respostas
+ 1
</âŹN!GM@>đŽââ ïž
Change the 4th line ....
print(len(re.findall(word,quote)))
syntax:
re.findall(pattern,string)
+ 1
Ëâ*°âą.Ëâ*°⹠Mohan 333 âąÂ°*âË.âąÂ°*âË
A lot of thanks for your help đđ»