I am new to Python and I am having a bit of trouble with the array functions. I want to make a 4 by 4 array which contains the numbers from 1 to 16.
I know that using np.zeros((4,4)) outputs a 4x4 array with all zeros.
Using np.array(range(17)) I can get an array of the required numbers BUT not in the correct shape (4x4).
It must be fairly simple, surely? All comments are much appreciated.