title: Storing arrays in Python for loop
body: <p>Let's say I have a function (called numpyarrayfunction) that outputs an array every time I run it. I would like to run the function multiple times and store the resulting arrays. Obviously, the current method that I am using to do this - </p>
  
  <pre><code>numpyarray = np.zeros((5))
  for i in range(5):
      numpyarray[i] = numpyarrayfunction
  </code></pre>
  
  <p>generates an error message since I am trying to store an array within an array. </p>
  
  <p>Eventually, what I would like to do is to take the average of the numbers that are in the arrays, and then take the average of these averages. But for the moment, it would be useful to just know how to store the arrays!</p>
  
  <p>Thank you for your help!</p>