Skip to main content

Transaction Summarizer

Challenge on lesson: Checkpoint: Data Pipelines

CHALLENGE
Difficulty: intermediate+25 XP

Implement summarize(transactions) โ€” each item is a dict with 'category' and 'amount'. Return a list of (category, total) tuples counting ONLY positive amounts, sorted by total descending; ties broken alphabetically by category.

Back to lesson: Checkpoint: Data Pipelines