I\'m currently trying to learn Numpy and Python. Given the following array:
import numpy as np a = np.array([[1,2],[1,2]])
Is there a funct
It is .shape:
ndarray.shape Tuple of array dimensions.
Thus:
>>> a.shape (2, 2)