finding dimension og=f array code example Example 1: numpy array length np_array.size Example 2: python check matrix dimension >>> a.shape (2, 2)