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