def average(list):
    """Average of a list.

    Parameters
    ----------
    list : list
        List of values.

    Returns
    -------
    float
        The mean value.
    """
    return sum(list) / float(len(list))