Posts by Alexandre Candido Teixeira • 1 point
1 post
-
-1
votes1
answer1660
viewsQ: How to turn diagonal elements of a python matrix into a list
I have the following matrix, for example: matriz = [[1, 2, 3, 4, 5, 6], [7, 8, 9, 3, 8, 9], [4, 5, 2, 3, 4, 4], [2, 3, 4, 5, 3, 6], [4, 5, 3, 4, 5, 6]] I would like to obtain only the elements of…