def get_mean(data):
    """
    Calculated mean for given list.
    @param data: list of numbers
    @return: arithmetic mean
    """
    if not data:
        raise Exception("Empty data.")
    sum_x = sum(data)
    mean = float(sum_x) / len(data)
    return mean