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 containsspams 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
containsspamThis is not Spam!"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
