Shape and Reshape

  • + 0 comments

    import numpy as np """ list() # use to create list map # use to apply a integer function to all iterables items int # the fuction convert input into integer like number np.array() ##### to convert list into array """ array=np.array(list(map(int,input().split()))).reshape(3,3) print(array)