You are viewing a single comment's thread. Return to all comments →
You can also do that using the "dtype" argument of numpy.array() function: print(numpy.reshape(numpy.array(input().split(), dtype=int),(3,3)))
Seems like cookies are disabled on this browser, please enable them to open this website
Shape and Reshape
You are viewing a single comment's thread. Return to all comments →
You can also do that using the "dtype" argument of numpy.array() function: print(numpy.reshape(numpy.array(input().split(), dtype=int),(3,3)))