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