word = input ("enter a word:") reverse = word[::-1] if reverse == word: print ("your word is a palindrome") else: print ("its not a palindrome")