def main(): user_input = input("write a random word") if user_input == user_input[::-1]: print("palindrome!") else: print("not palindrome") if __name__ == "__main__": main()