title: How to fill a list
body: <p>I have to make a function that takes an empty list as first argument and n as secound argument, so that:</p>
  
  <pre><code>L=[]
  function(L,5)
  print L
  returns:
  [1,2,3,4,5]
  </code></pre>
  
  <p>I was thinking:</p>
  
  <pre><code>def fillList(listToFill,n):
      listToFill=range(1,n+1)
  </code></pre>
  
  <p>but it is returning an empty list.</p>