def mode(ary):
    """
    mode function
    find the object with the biggest number of appears in the given ary
    :param ary: input ary (some iterable object)
    :return: the number with the largest appearence number
    """
    dct = {}
    for value in ary:
        if value in dct:
            dct[value]+=1
        else:
            dct[value] =1
    return max(dct, key=lambda k: dct[k])