word = input("Enter a word ") back = word[::-1] if back == word: print("This word is a palindrome") else: print("This word isn't a palindrome")