Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 62)
62.
Given a NumPy array arr = np.array([[1, 2, 3], [4, 5, 6]]), what does arr.shape return?
(2, 3)
(3, 2)
(2,)
(3,)
Answer: Option
Explanation:
The arr.shape attribute returns the dimensions of the array.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.