Is there a pythonic way to unpack a list in the first element and the \"tail\" in a single command?
For example:
>> head, tail = **some_magic a
>>> mylist = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55] >>> head, tail = mylist[0], mylist[1:] >>> head 1 >>> tail [1, 2, 3, 5, 8, 13, 21, 34, 55]