def mean(nums):
    """Calculates the mean value with Cython"""
    return sum(nums) / len(nums)
