word = input("Enter yor word: ") back = word[::-1] if back == word: print(word, "This is a palindrome") else: print(word, "This is not a palindrome")