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