Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

length of a matrix in python

matrix = [[1, 2]]
rows = len(matrix) # Height.
columns = len(matrix[0]) # Width.
print(rows)
print(columns)
 
PREVIOUS NEXT
Tagged: #length #matrix #python
ADD COMMENT
Topic
Name
3+4 =