title: How to fill up this python list?
body: <p>I would like to fill up this python list.</p>
  
  <pre><code>volume = []
  for x in range(0,num_days):
      volume[x] = quotations(x).Volume
  </code></pre>
  
  <p>I get the error <code>IndexError: list assignment index out of range</code>. What is wrong with the code and how to fill up <code>volume</code> list? <code>quotations</code> is an object imported from <code>win2com</code>.</p>
  
  <p>I am using python v3.6</p>