Get all the diagonals in a matrix/list of lists in Python
I’m looking for a Pythonic way to get all the diagonals of a (square) matrix, represented as a list of lists.
I’m looking for a Pythonic way to get all the diagonals of a (square) matrix, represented as a list of lists.