I want to compare two 1x3 arrays such as:
if output[x][y] != [150,25,75]
(output
here is a 3x3x3 so output[x][y]
is only a 1x3).
I'm getting an error that says:
ValueError: The truth value of an array with more than one element is ambiguous.
Does that mean I need to do it like:
if output[y][x][0] == 150 and output[y][x][1] == 25 and output[y][x][2] == 75:
or is there a cleaner way to do this?
I'm using Python v2.6