import numpy x = numpy.array([[0, 1], [1, 0]])x.sort() print(repr(x))
Standard input is empty
array([[0, 1], [0, 1]])
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!