Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
But some of the tests are done with matrix = [[1,2,3], [4,5,6]] so we cannot suppose that our input is mandatorily a square matrix !
Because if it was the case, then testing len(matrix) != len(matrix[0]) won't be necessary.
Hello,
I think it doesn't work just testing the first element of the matrix. For example, your function will return something if your input is [[1,2,3], [4,5], [6, 7, 8]] whereas this is not a matrix.