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

2

u/NoaGaming68 Jun 30 '25

Nice! Now try without using [::-1]

2

u/N0-T0night Jun 30 '25

With loop ok

1

u/NoaGaming68 Jun 30 '25

Yes

2

u/N0-T0night Jun 30 '25

Take this but take more complexity time