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!

25th May 2021, 7:21 AM
</€N!GM@>🏴‍☠️
</€N!GM@>🏴‍☠️ - avatar
2 ответов
+ 1
</€N!GM@>🏴‍☠️ Change the 4th line .... print(len(re.findall(word,quote))) syntax: re.findall(pattern,string)
25th May 2021, 7:54 AM
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜ - avatar
+ 1
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜ A lot of thanks for your help 👍🏻
25th May 2021, 8:14 AM
</€N!GM@>🏴‍☠️
</€N!GM@>🏴‍☠️ - avatar