You are viewing a single comment's thread. Return to all comments →
import numpy user_input = input().split() user_input = numpy.array(user_input,dtype = 'int') print(numpy.reshape(user_input,(3,3)))
Check this out :)
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 user_input = input().split() user_input = numpy.array(user_input,dtype = 'int') print(numpy.reshape(user_input,(3,3)))
Check this out :)