Spam Detector

 


text = input("Enter the  text\n")

if("make of lot of money" in text):
spam = True
elif ("buy now"in text):
spam = True
elif ("click this" in text):
spam = True
elif ("subscribe now" in text):
spam = True
spam=False
if (spam):
print("This text is spam")
else:
print("This text is not a spam")



Comments

Popular posts from this blog

React Installation with Vite and Tailwind css (Steps to Installation)

Insert Data In mongoDb

Class methods as an alternative Constructor