Answer:
Using the Python Programming Language:
def isRed(myString):
if "red" in myString:
return True
else:
return False
Step-by-step explanation:
The function definition is given above. To output the result of calling this function, we declare a string variable and call the function inside a print statement. See the two lines of code below:
myString= "My house is coloured red"
print (isRed(myString))
Notice that we defined the function called isRed to receive a string as a parameter, Then using the in keyword with an if statement, we check for the presence of the word 'red' in the string that is passed as argument to the function, the function will then return True if the word 'red' is present or False if it is not.