r/PythonLearning • u/N0-T0night • Jun 30 '25
Check palindrome
Check whether word in reverse order is the same or not like : mom,racecar,madam
57
Upvotes
r/PythonLearning • u/N0-T0night • Jun 30 '25
Check whether word in reverse order is the same or not like : mom,racecar,madam
7
u/dlo3 Jun 30 '25
Looks solid!
Also consider if the user enters multiple words, i.e. strings separated by whitespace. Edge case, but could be a good way to practice some string operations :) never expect anyone to use your software as itβs intended to be used π