What is the relationship between rank of an array and shape of an array in python ?
Answers
Answered by
1
Answer:
here it is
Explanation:
Shape. The shape of an array specifies the length of the array in each dimension. It is usually represented as a tuple. For a given array, the number of elements in the shape tuple will be equal to the rank of the array.
hope it helps you :)
Answered by
1
The number of dimensions is the rank of the array; the shape of an array is a tuple of integers giving the size of the array along each dimension. The Python core library provided Lists. A list is the Python equivalent of an array, but is resizeable and can contain elements of different types.
Similar questions