SyntaxFix
Write A Post
Hire A Developer
Questions
import numpy as np >>> np.shape(a) (2,2)
Also works if the input is not a numpy array but a list of lists
>>> a = [[1,2],[1,2]] >>> np.shape(a) (2,2)
Or a tuple of tuples
>>> a = ((1,2),(1,2)) >>> np.shape(a) (2,2)