Predict

Past the End of the Alphabet

Shifts can be bigger than 26, and they can even be negative (shifting backwards). Python's % always gives an answer from 0 to 25 when you use % 26, even for negative numbers. For example, -1 % 26 is 25.

def shift_letter(letter, shift):
    pos = ord(letter) - ord("a")
    return chr((pos + shift) % 26 + ord("a"))

print(shift_letter("b", 27), shift_letter("b", -3))

What does this program print?