w = input("enter a word to see if it is a palindrome ") backwords = w[::-1] if backwords == w: print("your word is a palindrome") else: print("your word is not a plaindrome")