Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 11)
11.
What is the purpose of the numpy.shape attribute in a NumPy array?
Retrieves the length of the array.
Returns the number of dimensions in the array.
Reshapes the array.
Converts the array to a list.
Answer: Option
Explanation:
The numpy.shape attribute returns a tuple representing the dimensions of the NumPy array.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.