how to find dimension of array in python code example Example: python check matrix dimension >>> a.shape (2, 2)