Feb-02-2019, 03:06 AM
The all function is your friend. You could do all on each row as a list comprehension, and then all on the result. Depending on the size of the matrix, doing it as a loop so you can short circuit in may be good. Then you would loop through the rows, any on each row, break if it's false, and else on the loop for if all of them are true.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures