Feb-02-2019, 04:17 PM
(Feb-02-2019, 04:58 AM)perfringo Wrote: I don't know is it important or not but just observing that in case of empty matrix (list of empty lists) checking against matrix[0][0] will give IndexError.
I think it should. Checking that all the items in an empty matrix are equal doesn't make sense, so I think returning an IndexError is a good idea. Sort of like popping from an empty list.
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