Question: . username@domain.suffix You are to write a python FUNCTION that will filter email based on username and domain. The FUNCTION should take one argument which

. username@domain.suffix You are to write a python FUNCTION that will filter email based on username and domain. The FUNCTION should take one argument which you can assume to be a string like student@tamu.edu Your program should do the following: Determine if domain has a .edu suffix If it is from a tu (@utexas.edu), it should only display "Saw 'em off" and exit the program if domain has a .edu suffix, print "Email from education domain @zz" where zz is the domain if it is from Texas A&M. The message should also display "Howdy!" before "Email from education domain @zz" where zz is the domain If the email is from the instructor of your section, print"- Message from Dr. Kurwitz" Determine if domain has a .gov suffix print "Important government email xx at yy" where xx is the username and yy is the domain without suffix Determine if domain is from a list of blocked countries print "Email blocked from xx" where xx is the country name Blocked countries and domain suffix: Cuba (.cu), Iran (.ir), and North Korea (.kp) If the email has a suffix other than one listed above print "Email received
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
