I'm trying to extract the first three items from numbers, and assign them to three different variables, as follows:
numbers = [1,2,3,4,5,7,8,9,10]
[first_item, second_item, third_item] = numbers
Why am I getting this error?
Traceback (most recent call last):
File "test.py", line 2, in <module>
[first_item, second_item, third_item] = numbers
ValueError: too many values to unpack