Shape and Reshape

  • + 1 comment

    You can also do that using the "dtype" argument of numpy.array() function: print(numpy.reshape(numpy.array(input().split(), dtype=int),(3,3)))