title: Python: print array of strings to stdout line by line
body: <p>I need to print to stdout (but next step is print to file) an array of strings, containing the info to build-up a shape.
  Below, the for loop:</p>
  
  <pre><code>for i in range(0, xMax):
      for j in range(0, yMax):
          print arena_shape[ j + i*yMax]
      print('\r')
  </code></pre>
  
  <p>The array arena_shape[] contains the chars to built-up a 2D figure, figure with i = [0, xMax] rows and j = [0, yMax] columns.
  I expect the output to be :</p>
  
  <pre><code>i=0    ----------    ------
  i=1    |                  |
         |                  |
         |                  |
         |                  |
         |                  |
         |                  |
  i=xMax --------------------
  </code></pre>
  
  <p>instead to get the first line <code>(i=0, j=[0,yMax])</code> in "horizontal" as I would expect, I get it displayed in vertical, even if I tell python to <code>\r</code> only when changing <code>row i</code> and not at each <code>column j</code></p>
  
  <pre><code>i=0 -
      -
      -
      -
      -
      -
      -
      -
      -
      -
  
  
  
  
      -
      -
      -
      -
      -
      -
  </code></pre>
  
  <p>I don't understand why this is not changing line after the <code>print("\r")</code> instruction.
  Thank you in advance for the help.</p>