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 ответов
+ 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 👍🏻