Numpy array dimensions September 19, 2022 by Tarik Use .shape to obtain a tuple of array dimensions: >>> a.shape (2, 2)