fix(curriculum): clarify create_spend_chart takes a list of categories (#67340)

This commit is contained in:
majestic-owl448
2026-05-12 19:16:49 +02:00
committed by GitHub
parent 663c873aca
commit 0da7c6de98
@@ -52,7 +52,7 @@ In this lab, you will build a simple budget app that tracks spending in differen
Total: 923.96
```
1. You should have a function outside the `Category` class named `create_spend_chart(categories)` that returns a bar-chart string. To build the chart:
1. You should have a function outside the `Category` class named `create_spend_chart(categories)` that takes a list of categories and returns a bar-chart string. To build the chart:
- Start with the title `Percentage spent by category`.
- Calculate percentages from withdrawals only and not from deposits. The percentage should be the percentage of the amount spent for each category to the total spent for all categories (rounded down to the nearest 10).