I've tried a few approaches, none of which seem to work for me.
board = [[0,0,0,0],[0,0,0,0]]
if not 0 in board:
# the board is "full"
I then tried:
if not 0 in board[0] or not 0 in board[1]:
# the board is "full"
None of these approaches worked, though the second one generally let the array fill up more. (I wrote code to fill up the array randomly).
# the board is fullwas (for lack of a better word) run at the wrong time.