def intrep_frac(lst):
    """Returns the fraction of items in the list that are repeated"""
    if len(lst) == 0:
        return 0
    num_rep = 0
    for idx in range(len(lst)):
        if lst[idx] in lst[:idx]:
            num_rep += 1
    return num_rep / len(lst)