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 Respostas
+ 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
25th May 2021, 8:14 AM
</€N!GM@>đŸŽâ€â˜ ïž
</€N!GM@>đŸŽâ€â˜ ïž - avatar