title: How to make a dynamic grid in Python
body: <p>I am building an X's and O's (tic tac toe) application where the user can decide whether the grid is between 5X5 and 10X10, how do I write the code so that the grid is dynamic? </p>
  
  <p>At the moment this is all I have to make a grid of one size:</p>
  
  <pre><code> grid = [[0,0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0],[0,0,0,0,0,0,0]]
  </code></pre>