Pulling the pieces out of a collection and giving each a name is something you do constantly. Python’s unpacking does it in one line, works on any iterable, and can collect the leftovers into a list with a star. Once it becomes a habit, a lot of index-heavy code turns into code that reads like a sentence.
More lessons in Complete Python Programming