All problems
Mean
Problem
Compute the arithmetic mean of a list of numbers: sum(data) / len(data).
Test cases
case 1
in: [[1,2,3,4,5]]
expected: 3
case 2
in: [[10,20,30]]
expected: 20
case 3
in: [[7]]
expected: 7
case 4
in: [[1,1,1,1]]
expected: 1
Starter codePython
def mean(data):
# Your code here
pass4 test cases · run your code against them in the editor