import math


def mean(data):
    """ 
    Calculates the mean of a data set

    Args:
        data: the list with the data
    """

    n = len(data)
    if (n > 0) :
        result = math.fsum(data) / n
        return result