import numpy M = numpy.zeros(shape = (5,2))M[0][1]=77M = M/(numpy.sum(M))print(numpy.sum(M))#print(M)
Standard input is empty
1.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!