Python Essentials · 22 min · 190 XP

Checkpoint: order summary

Turn a list of order dictionaries into a trustworthy summary without a step-by-step recipe.

Checkpoint rules: sketch the result first, start from the blank editor, and do not open the hint until you have run at least one attempt.

When a task combines lists and dictionaries, identify the shape at each level. Here, orders is a list; each order is a dictionary; and the result is one new dictionary containing a list, a number and another dictionary. Naming those shapes before coding prevents most bracket mistakes.

Loading your workspace…