Untitled

Anonymous
python
08/16/2023 7:43 AM
296 B
17
Indexable
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()
Editor is loading...