I have a dual list and I am wondering what it the best way to get the indexes of the zeros in the array
board =[[1,2,0],
[2,1,2],
[1,1,0]]
for boxes in board:
if 0 in boxes:
print boxes
like this but instead I want to have return [0,2] [2,2]
boardwere a NumPy array, you could usezip(*numpy.where(a == 0)).boxes... so I think there could also be 3 zeros in, but it would still work.