Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python: mean average


def mean(numbers):
    numbers.sort()
    q = len(numbers) // 2
    if len(numbers) % 2 !=0:
        return numbers[q]
    elif len(V) % 2 == 0:
        return (numbers[q - 1] + numbers[q]) / 2
        
 
PREVIOUS NEXT
Tagged: #average
ADD COMMENT
Topic
Name
9+3 =