title: How can I create the fibonacci series using a list comprehension?
body: <p>I am new to python, and I was wondering if I could generate the fibonacci series using python's list comprehension feature. I don't know how list comprehensions are implemented. 
  I tried the following (the intention was to generate the first five fibonacci numbers):</p>
  
  <pre><code>series=[]
  series.append(1)
  series.append(1)
  series += [series[k-1]+series[k-2] for k in range(2,5)]
  </code></pre>
  
  <p>This piece of code throws the error: <code>IndexError: list index out of range</code>.</p>
  
  <p>Let me know if it is even possible to generate such a series using a list comprehension.</p>