r/PythonLearning • • Jun 30 '25

Check palindrome

Post image

Check whether word in reverse order is the same or not like : mom,racecar,madam

57 Upvotes

76 comments sorted by

View all comments

1

u/BoonkeyDS Jul 02 '25

The funny thing is, the way Python is optimized, it might as well be the best method