List1 (10, 45,67,34,89)
1. Use *np.arange()* function to create an array *array3* which has numbers from 10 to 50 at intervals of 10.
2.Sort *array1* using Numpy function.
3. Create a 2-Dimensional array *array4* of size 3X4 with any integer values and print the following:
- Number of Dimensions
- Shape of array
- Length of array
please don't give unnecessary answers
I need these answers please do help me
Answers
Answered by
1
Answer:
To get the number of dimensions, shape (length of each dimension) and size (number of all elements) of NumPy array, use attributes ndim , shape , and size of numpy. ndarray . The built-in function len() returns the size of the first dimension.06-Nov-2019
Similar questions
English,
19 days ago
English,
1 month ago
Math,
1 month ago
Computer Science,
9 months ago
English,
9 months ago