Untitled

mail@pastecode.io avatar
unknown
python
a year ago
220 B
2
Indexable
Never
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()