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