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 Answers
+ 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 đđť