Text = input("Enter a word:") if str(Text) == str(Text)[::-1] : Palendrome = True else : Palendrome = False if Palendrome == True : print(Text, "is a Palindrome") elif Palendrome == False : print(Text, "is not a palindrome")