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/LeaderSevere5647 Jun 30 '25
  1. Did you intend for it to be case sensitive?

  2. Better to use f strings.

  3. No need for the trailing “word” at the end, looks awkward.

  4. Try to keep quotation marks more consistent.

1

u/N0-T0night Jun 30 '25

OMG 😲 u r right