def mean(values):
    """
    Calculate the mean for a set of values.

    :param values: Values to calculate the mean of.
    """
    if len(values) > 0:
        return float(sum(values)) / len(values)
    return None