text = input( "Enter a word:" ) palindrome = text [::-1] if text == palindrome : print( text, "is a palindrome") elif text == text : print( text, "is not a palindrome")