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