word = input("Please enter a word: ") if word == word[::-1]: print("The word is a palindrome!") else: print("The word is not a palindrome.") #works