root@coding-prodigies:~#
← All challenges

Caesar Cipher

Shift every letter of a word forward by 3 in the alphabet.

🟡 MediumDifficulty

The challenge

Given the string "hello", shift every letter forward by 3 positions in the alphabet (wrapping z back to a) and print the result. ('h' -> 'k', 'e' -> 'h', etc.)

Output

  
🧠 Need a hint? (Python)

Convert each character to its position in the alphabet with ord(c) - ord('a'), add the shift, wrap with % 26, then convert back with chr(...) + ord('a').

🚀

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