create a function in python that takes a string and checks to see if it contains the following words or phrases: code example
Example: create a function in python that takes a string and checks to see if it contains the following words or phrases:
prefixes = "JKLMNOPQ"
suffix = "ack"
for letter in prefixes:
print letter + suffix