def mean(r):
    try:
        return float(sum(r)) / len(r)
    except ZeroDivisionError:
        raise ValueError("can't calculate mean of empty collection")
Return the mean (i.e., average) of a sequence of numbers.
dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/number.py/mean