def list_hist(lt: list) -> dict:
    """Returns a histogram for a given list"""
    d = dict()
    for _ in lt:
        if _ in d.keys():
            d[_] += 1
        else:
            d[_] = 1
    return d