def vector_mean(vectors):
 n = len(vectors)
 return scalar_multiply((1 / n), vector_sum(vectors))

def vector_mean ( vectors ) : n = len ( vectors ) return scalar_multiply ( ( 1 / n ) , vector_sum ( vectors ) )
compute the vector whose i-th element is the mean of the i-th elements of the input vectors .