def isPalindrome(string): if(string==string[::-1]): return print("This is a palindrome") else: return print("This is not a palindrome") string=input("Enter a palindrome: ") print(isPalindrome(string))