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