def tally_letters(string):
    """Given a string of lowercase letters, returns a dictionary mapping each
    letter to the number of times it occurs in the string."""
    tally_dict = {}
    for letter in string:
        tally_dict[letter] = 0
    for letter in string:
        tally_dict[letter] += 1
    return tally_dict