word = input( "Enter a word: " ) palindrome = list( reversed( word ) ) if palindrome == list( word ) : print( word, "is a palindrome" ) else : print( word, "is not a palindrome" )