root@coding-prodigies:~#
← All challenges

Palindrome checker

Check whether each word reads the same backwards.

🟡 MediumDifficulty

The challenge

For each word in ["racecar", "hello", "level", "world"], print yes if it's a palindrome (reads the same forwards and backwards) or no if it isn't -- one line per word, in order.

Output

  
🧠 Need a hint? (Python)

Compare the word to its own reversed version (w == w[::-1]). If they're equal, it's a palindrome.

🚀

Like solving these?

Structured courses, hands-on exercises, and real multi-file projects are waiting -- your first project unlock is free.

Create a free account

More challenges