title: Python - How can I find if an item exists in multidimensional array?
body: <p>I've tried a few approaches, none of which seem to work for me. </p>
  
  <pre><code>board = [[0,0,0,0],[0,0,0,0]]
  
  if not 0 in board:
       # the board is "full"
  </code></pre>
  
  <p>I then tried:</p>
  
  <pre><code>if not 0 in board[0] or not 0 in board[1]:
      # the board is "full"
  </code></pre>
  
  <p>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).</p>