def average(data):
    """
    Calculate the average of values of the data.
    Args:
        data (list): values.
    Returns the average of values of the data.
    """
    return 1.0*sum(data)/len(data)