Description
Write a program that searches for spam emails. A spam email is an email that often is a scam, something that you didn't sign up for but are still receiving. More often that not it's a deceiving email trying to get your personal information. You should take into account that an email from a subscribed organization is not a spam email. In the pdf below you will be able to see what spam emails vs real emails looks like. For this challenge, you must code a program that takes .txt email file and outputs if the email is spam or not (True or False). To be clear, in this challenge you aren't going to create a machine-learning algorithm to detect spam emails, but will hardcode some code through if/else loops that searches for certain things that can detect whether the email is spam. Look at the blog/news page often to see new hints, tips, and tricks on how to create a good program. The winner of this challenge will be based on how many spam emails the program is able to detect. Next month this challenge will be continued with the same theme but a different method of creation, to signify the value of artificial intelligence in tasks with no definite end. Please click the registration link above to sign up for this competition. This registration form is needed if you would like to be considered for this challenge. To submit your code, you can follow the directions on the submission page. A code template (button above) is available to assist you in this journey, code should be written in python. Good Luck!
Input
Your final function should take three inputs, (A,B,C). A is the subject of the email. B is the email address of the sender. And C is the body text of the email.
Output
Your final function should return a boolean value, True (1) or False (0). True (1) means that the function is saying the email is spam. False (0) means that the function is real, or not spam.
Examples
A = "Signature Request"
B = "john@gmail.com"
C = "Dear Mr.Smith, I have attached a file below that is the competition photo release form which requires your signature. As we have discussed in our meeting earlier, I hope you can enter your signature and send back as soon as possible. Thank you, John." ----> REAL
A = "1 M$LL$ON D0LLAR WINNER"
B = "milliondollar12&3213-09@suscribe.com"
C = "U wonn a million do&&ars. To collect respond with your credit card information. This is a secure site. Please not do notify @nyone of this win until you have received your $$. Plz enter valid info inorder to receive the award money. We use any form of pay including Visa, Discover, AppleCard, Bankof America, etc. Congrtulations@" ----> SPAM
A = "Check Out This Document!!!"
B = "youwonalotofmoney@gmail.com"
C = "Hey! download this AttAtChmnt. ****word document attatched****" ----> SPAM
A = "10% of ENTIRE STORE"
B = "contact@childrensplace.com" C = "Ready for your next purchase. Use this coupon code to get an extra 10% off on your entire purchase. SHOP: Girls. SHOP: Boys... Buy one get one 50% off on jeans and shorts..." ----> REAL