import numpy as np np.ones([1,2,3,4,5])
- It returns a 5×5 matric; each row will have the values 1,2,3,4,5.
- It returns an array with the values 1,2,3,4,5
- It returns five different square matrices filled with ones. The first is 1×1, the second 2×2, and so on to 5×5
- It returns a 5-dimensional array of size 1x2x3x4x5 filled with 1s.
Correct Answer:
- It returns a 5-dimensional array of size 1x2x3x4x5 filled with 1s.