Question: Write a function contains _ spam ( s ) so that it prints This email contains spam! when a string argument passed to the function

Write a function contains_spam(s) so that it prints
This email contains spam!
when a string argument passed to the function contains the word "spam" as a substring in any case.
It should print This email contains spam! for this example
contains_spam("This is not Spam!")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!