title: how to print 3x3 array in python?
body: <p>I need to print a 3 x 3 array for a game called TicTackToe.py. I know we can print stuff from a list in a horizontal or vertical way by using </p>
  
  <pre><code>listA=['a','b','c','d','e','f','g','h','i','j']
  # VERTICAL PRINTING 
  for item in listA:
          print item
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>a
  b
  c
  </code></pre>
  
  <p>or</p>
  
  <pre><code># HORIZONTAL  PRINTING
  for item in listA:
          print item,
  </code></pre>
  
  <p>Output: </p>
  
  <pre><code>a b c d e f g h i j
  </code></pre>
  
  <p>How can I print a mix of both, e.g. printing a 3x3 box
  like </p>
  
  <pre><code>a b c
  d e f
  g h i
  </code></pre>