title: Alternating values in a numpy matrix
body: <p>I'm trying to represent a checkerboard using a numpy matrix comprised of 1s and 0s. It should be able to have dimensions of odd length. Something like</p>
  
  <pre><code>a = [[0, 1, 0, 1, 0],
       [1, 0, 1, 0, 1],
       [0, 1, 0, 1, 0]]
  </code></pre>
  
  <p><code>board = np.resize([0, 1], (3, 5))</code> works but only because the dimensions are odd, and they could also potentially be even. Is there a fast way to accomplish this?</p>