SyntaxFix
Write A Post
Hire A Developer
Questions
Suppose you have a which is an array. to get the dimensions of an array you should use shape.
import numpy as np a = np.array([[3,20,99],[-13,4.5,26],[0,-1,20],[5,78,-19]]) a.shape
The output of this will be (4,3)