Question: Create a 1D NumPy array and verify its dimensions, shape and size. a = np. array ([1,3,-2,1]) print (a) Verify the number of dimensions: a.
Create a 1D NumPy array and verify its dimensions, shape and size. a = np. array ([1,3,-2,1]) print (a) Verify the number of dimensions: a. ndim Verify the shape and size of the array: a. shape a. size
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
