Input Format
The first line contains the space separated values of  and .
The next  lines contains  space separated integers.
Output Format
First, print the mean.
Second, print the var.
Third, print the std.

mean var and std problem solution in python programming

Problem solution in Python 3 programming language.

import numpy
N, M = map(int, input().split())
my_array = numpy.array([ map(int, input().split()) for i in range(N) ])
print(numpy.mean(my_array, axis = 1))
print(numpy.var(my_array, axis = 0))
print(numpy.std(my_array, axis = None))

second solution

import numpy as np
n, m = map(intinput().split())
k = np.array([input().split() for _ in range(n)],dtype = int)
print(np.mean(k,axis=1), np.var(k,axis=0), np.std(k), sep='\n')

Problem solution in Python 2 programming language.

import numpy
N, M = map(int, raw_input().split())
my_array = numpy.array([ map(int, raw_input().split()) for i in range(N) ])
print numpy.mean(my_array, axis = 1)
print numpy.var(my_array, axis = 0)
print numpy.std(my_array, axis = None)