title: Create new column for data after each iteration of a for loop in python
body: <p>Using the next code I want to put the results in columns for differents values of m</p>
  
  <pre><code>import numpy as np 
  for m in np.arange(0, 4, 1):
     for n in np.arange(1, 4, 1):
         coef = 2*m/n
         print coef
  </code></pre>
  
  <p>The results of this is:</p>
  
  <pre><code>0
  0
  0
  2
  1
  0
  4
  2
  1
  6
  3
  2
  </code></pre>
  
  <p>I want to get this</p>
  
  <pre><code>0 0 0
  2 1 0
  4 2 1
  6 3 2
  </code></pre>
  
  <p>or get directly the column, which is the sum of values of the rows </p>
  
  <pre><code>0 + 0 + 0 = 0
  2 + 1 + 0 = 3
  4 + 2 + 1 = 7
  6 + 3 + 2 = 11
  </code></pre>