Python defines unpacking for sequences(lists, tuple for example). RHS length has to match seq.len

>>> x = [1,2]
>>> a , b = x

also, there is star expression for unpacking in pep-3132.

>>> a, *b, c = range(5)
>>> a
0
>>> c
4
>>> b
[1, 2, 3]

Also, useful trick for unpacking while calling a function. where is two types list unpack (one star) and names unpack(double star). This is defined by pep

>>> def f1(a,b):
...     print(a,b)
...
>>> x = [1,2]
>>> f1(*x)
1 2
>>> x = {"a":2, "b":4}
>>> f1(**x)
2 4