title: Developing a function to print a grid in python
body: <p>I Just started programming with python and I've been tasked in printing a grid in python that looks as follows (image is attached). I'm really stumped on how i would achieve this through defining a function:</p>
  
  <p><a href="https://i.stack.imgur.com/GyTur.png" rel="nofollow noreferrer">Picture of Grid</a></p>
  
  <pre><code>def display_game(game, grid_size):
  </code></pre>
  
  <p>The argument (game) is the strings that represent the cells in the game i.e (~),
  whilst the grid_size represents the size of the grid, i.e 7 would correspond to a 7x7 grid.</p>
  
  <p>I know string splicing, for loops and print statements would be viable, i just don't know how to piece it together.</p>
  
  <p>Any help would be much appreciated, Cheers.</p>