def freq(mylist, item):
    """Return the relative frequency of an item of a list.

    :param mylist: (list) list of elements
    :param item: (any) an element of the list (or not!)
    :returns: frequency (float) of item in mylist

    """
    return float(mylist.count(item)) / float(len(mylist))