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