def reverse_lookup(d, v):
    """Modify reverse_lookup so that it builds and returns a list of all keys that map to
v, or an empty list if there are none"""
    result = []
    for k in d:
        if d[k] == v:
            result.append(k)
    return result