How to make Python list multiple destinations on one line.
>>>a,b,c = [1,2,3]
>>> a
1
>>>b
2
>>>c
3
but what should I do to assign the rest of the auxiliary array c
>>> a,b,c = [1,2,3,4,5,6,7,8,9]
>>> a
1
>>>b
2
>>>c
[3,4,5,6,7,8,9]
how to do it?
source
share