0

r"(inputted word)"______in re.findall

How can I add inputted word to r? import re quote = "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() #Š¼ŠµŃŃ‚Š¾ Š“Š»Ń Š²Š°ŃˆŠµŠ³Š¾ ŠŗŠ¾Š“Š° pattern = r"word" <---------------- print(len(re.findall(pattern, quote)))

19th May 2021, 9:03 AM
ŠŠ»ŠµŠŗсŠ°Š½Š“р Š“Ń€Š°Š¼Š¾Š²Šøч
ŠŠ»ŠµŠŗсŠ°Š½Š“р Š“Ń€Š°Š¼Š¾Š²Šøч - avatar
1 Answer
19th May 2021, 9:19 AM
TheWhĀ”teCat šŸ‡§šŸ‡¬
TheWhĀ”teCat šŸ‡§šŸ‡¬ - avatar