title: Turn grid into a checkerboard pattern in python?
body: <p>I have successfully created a grid, but am now trying to turn my grid into a checkerboard pattern, preferably using a variant of the floodfill command. <br><br> how do I make sure the program recognizes which squares are even and which are odd? <br> <br>
  currently the IDE is set so <code>m[i][j]= 1</code> gives blue, while <code>m[i][j]= 0</code> gives red, which I am happy to keep, and so I do not need to define the colors. Thank you.</p>
  
  <p>Code I have so far :</p>
  
  <pre><code>from pylab import *
  from numpy import *
  from math import *
  
  m=zeros((100,100))
  for i in range(100):
      for j in range(100):
          if (math.floor(i) % 10) != 0:
              if (math.floor(j) % 10) != 0:
                  m[i][j]= 1
              else:
                  m[i][j]= 0
  
  imshow(m)
  show()
  </code></pre>
  
  <p>Code output :</p>
  
  <p><a href="https://i.stack.imgur.com/ASZ3c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ASZ3c.png" alt="enter image description here"></a></p>