Untitled
unknown
python
3 years ago
220 B
12
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...