You are viewing a single comment's thread. Return to all comments →
def reshape(arr): arr1 = numpy.array(arr) res = numpy.reshape(arr1,(3,3)) return res
arr = list(map(int,input().split())) print(reshape(arr))
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 →
def reshape(arr): arr1 = numpy.array(arr) res = numpy.reshape(arr1,(3,3)) return res
arr = list(map(int,input().split())) print(reshape(arr))