how to find size of 2d array in python code example
Example 1: code to find the shape of the 2d list in python
from numpy import array
l = [[2, 3], [4, 2], [3, 2]]
a = array(l)
print a.shape
Example 2: how to get height of 2d array in python
list = [[1, 2, 3], [11, 12, 13]]
print(len(list)) # 2