Extracting items from a list and assigning them to variables
<p>I'm trying to extract the first three items from <code>numbers</code>, and assign them to three different variables, as follows:</p>

<pre><code>numbers = [1,2,3,4,5,7,8,9,10]
[first_item, second_item, third_item] = numbers
</code></pre>

<p>Why am I getting this error?</p>

<pre><code>Traceback (most recent call last):
  File "test.py", line 2, in &lt;module&gt;
    [first_item, second_item, third_item] = numbers
ValueError: too many values to unpack
</code></pre>