LearnPy Hub
← Strings problems
Medium

Caesar Cipher

Read a lowercase word and a shift k. Shift each letter k places forward in the alphabet, wrapping from z to a.

Input

A word, then k (0–25).

Output

The encoded word.

Sample 1

Input
abc
1
Output
bcd

Sample 2

Input
xyz
3
Output
abc
solution.py
Output appears here
Hints
Caesar Cipher · Python practice problem · LearnPy Hub