(values)
return (sum(values) / len(values)) if values else None
Computes the arithmetic mean of a list of numbers.

    >>> average([0.9, 0.9, 0.9, 1.0, 0.8, 0.9])
    0.9
Computes the arithmetic mean of a list of numbers.
Computes the arithmetic mean of a list of numbers .
def average(values):
    """
    Computes the arithmetic mean of a list of numbers.

    >>> average([0.9, 0.9, 0.9, 1.0, 0.8, 0.9])
    0.9
    """

    return (sum(values) / len(values)) if values else None
def average ( values ) : return ( sum ( values ) / len ( values ) ) if values else None