mean math code example
Example 1: what is a median
Median of a triange is a line that goes from a vertex of the triangle
to the midpoint of the opposite side of that vertex.
Example 2: mean
#the plan is to have a boring mean
def mean(arr): # mean
return sum(arr)/len(arr)
Example 3: mean
#the plan is to remove all values that are zero
def mean(arr): # mod_mean
arr = list(filter(lambda n:n!=0,arr))
return sum(arr)/len(arr)