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