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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!