← back to unit
Medium
# puzzle gauntlet medium
The Caesar Wheel
The oldest cipher in the book: rotate every letter k steps down the alphabet, wrapping from z back to a. Julius Caesar really used this! 🏛️
You get a lowercase message (letters and spaces; spaces stay) and the shift k. Print the coded message.
Example:
Input: message = "attack at dawn", k = 3
Output: dwwdfn dw gdzq
Shifting each letter 3 steps forward (a→d, t→w, ...) and wrapping z back around to c gives the coded message.
💡 need a hint?
pg-caesar-wheel.py🔒 given lines are locked — write your code in between
loading...