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