Answers for "length of a matrix in python"

1

length of a matrix in python

matrix = [[1, 2]]
rows = len(matrix) # Height.
columns = len(matrix[0]) # Width.
print(rows)
print(columns)
Posted by: Guest on September-27-2020
0

python check matrix dimension

>>> a.shape
(2, 2)
Posted by: Guest on August-27-2020

Code answers related to "length of a matrix in python"

Python Answers by Framework

Browse Popular Code Answers by Language