You are viewing a single comment's thread. Return to all comments →
import numpy
arr=list(map(int,input().split()))
change_array=numpy.array(arr) change_array=change_array.reshape(3,3) print(change_array)
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Shape and Reshape
You are viewing a single comment's thread. Return to all comments →
import numpy
arr=list(map(int,input().split()))
change_array=numpy.array(arr) change_array=change_array.reshape(3,3) print(change_array)