word = input("Enter a word: ") reversed_word = "" for number in range(len(word)): reversed_word = word [number] + reversed_word if word == reversed_word: print(word, "is a palindrome") else: print(word, "is not a plaindrome")