title: Python Drawing a tic tac toe board
body: <p>I am trying to draw a fake 3x3 tic tac toe board. I am new to python and I don't understand why this does not work. Help would be appreciated. Thanks!</p>
  
  <pre><code>def draw():
      for i in range(4):
          board = (" ___ " * 3)
  
      for i in board:
          ("|    " * 4).join(board)
  
      print(board)
  
  
  draw()
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Final code:</p>
  
  <pre><code>def draw():
      board = ''
  
      for i in range(-1,6):
  
          if i%2==0:
              board += '|      ' * 4
              board += '\n|      |      |      |'
  
          else:
              board += ' _____ ' * 3
  
          board += '\n'
      print (board)
  
  draw()
  </code></pre>
  
  <p>output:</p>
  
  <pre><code> _____  _____  _____ 
  |      |      |      |      
  |      |      |      |
   _____  _____  _____ 
  |      |      |      |      
  |      |      |      |
   _____  _____  _____ 
  |      |      |      |      
  |      |      |      |
   _____  _____  _____ 
  </code></pre>
  
  <p>Double Edit:</p>
  
  <p>Another way:</p>
  
  <pre><code>def drawsmall():
      a = (' ___' *  3 )
      b = '   '.join('||||')
      print('\n'.join((a, b, a, b, a, b, a, )))
  
  drawsmall()
  </code></pre>
  
  <p>output:</p>
  
  <pre><code> ___ ___ ___
  |   |   |   |
   ___ ___ ___
  |   |   |   |
   ___ ___ ___
  |   |   |   |
   ___ ___ ___
  </code></pre>