List from a range
<p>How can I input all the numbers from a for loop into a list?</p>

<p>For example:</p>

<pre><code>for i in range(0, 5):
    # I want to produce this list: [0,1,2,3,4]
</code></pre>
