xxxxxxxxxx
lista = [[1,2,3],[4,5,6]]
arow = len(lista)
acol = len(lista[0])
print("Rows : " + str(arow))
print("Columns : " + str(acol))
xxxxxxxxxx
#consider as a example
import numpy as np
l=[[1,2,3],[3,4,5]]
print(np.shape(l)) #this will give the shape of list