word = input("Enter a word:") rev=''.join(reversed(word)) if word == rev: print(word,"is a palindrome.") else: print(word,"is not a palindrome.")