Feb-02-2019, 03:34 AM
(This post was last modified: Feb-02-2019, 04:24 AM by ichabod801.)
Thank you for your prompt reply. But unfortunately I am such a total beginnier that your advice it too complicated for me. I know about "loop" and "all" but I am unable to get it working. I have the following:
I would be very grateful if you could advise me on this.
Thank you!
def result(matrix): for row in matrix: for element in row: if all(matrix) == "X": return True else: return FalseBut it returns a wrong result.
I would be very grateful if you could advise me on this.
Thank you!