def shift_letter(letter, shift):
    """Shift letter by shift number."""
    base = ord('a')
    num_letters_in_alphabet = 26
    return chr(base + (ord(letter) - base + shift) % num_letters_in_alphabet)