title: Separate the first loop append and the second loop append while doing double loop in Python
body: <p>Now I am trying to make two dimesional array with double loop.</p>
  
  <p>In my code:</p>
  
  <pre><code>for t in range(0,150):
      for z in range(0,279):
              QC1 = QC[t,z,:,:]
              SUMQ =1000*np.mean(QC1)
              QRAIN1.append(SUMQ)
      print len(QRAIN1)
      QRAIN.append(QRAIN1)
      QR = np.array(QRAIN)
  </code></pre>
  
  <p>I would like to make 150X279 array, but the result is not, because I think that in every time of the first loop run, the results are appended in the QRAIN1.</p>
  
  <p>I would like to separate each loop run of the list of 259 numbers and accumulate them to QRAIN resulting 150x279 array.</p>
  
  <p>Any help or idea would be really appreciated.</p>
  
  <p>Thank you,</p>
  
  <p>Isaac </p>