Answer:
The function in Python is as follows:
def check_palindrome(strn):
retstr = "Bummer. Not a palindrome."
if strn[len(strn)::-1] ==strn:
retstr = "Hey! That's a palindrome!"
return retstr
Explanation:
This defines the function
def check_palindrome(strn):
This sets the return string to not a palindrome
retstr = "Bummer. Not a palindrome."
This checks if the original string and the reversed string are the same
if strn[len(strn)::-1] ==strn:
If yes, the return string is set to palindrome
retstr = "Hey! That's a palindrome!"
This returns the expected string
return retstr
<em>The function to reverse the string is not given; and the programming language. So, I solve the question without considering any function</em>