Answers for "python 2d array size"

0

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
Posted by: Guest on August-18-2020
0

how to get height of 2d array in python

list = [[1, 2, 3], [11, 12, 13]]

print(len(list))	# 2
Posted by: Guest on May-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language