title: "growing" (appending to) a sequence object
body: <p>In Matlab, this type of algorithm ("growing arrays") is advised against</p>
  
  <pre><code>mine = []
  for i=1:100,
      mine = [mine,randn(1)]
  end
  </code></pre>
  
  <p>whereas it seems that many examples for Python show this kind of algorithm (this is a really bad example though):</p>
  
  <pre><code>import numpy.random as rand
  
  mine = []
  for i in range(100):
      mine.append(rand.random(1)[0])
  </code></pre>
  
  <p>I wonder why that is -- what is the difference?</p>