Extended unpacking (`Python 3 Only`):
This way first and last list element will be unpacked into
#python #python3 #unpack #extended_unpack
>>> a, *b, c = [1, 2, 3, 4, 5]
>>> a
1
>>> b
[2, 3, 4]
>>> c
5
This way first and last list element will be unpacked into
a
and c
and other values will be inside of b
variable.#python #python3 #unpack #extended_unpack