Why can np.arange(256).reshape(4, 4, 4, 4) form the requested array?
np.arange(256).reshape(4, 4, 4, 4)
arange(256) creates 256 values and the target dimensions also require 4×4×4×4 = 256 elements
arange(256)
The expression creates only four values
reshape creates any missing values automatically
reshape
The shape is valid because values are random