From 0da7c6de9810487f444009c1dc61324e93a51b05 Mon Sep 17 00:00:00 2001 From: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com> Date: Tue, 12 May 2026 19:16:49 +0200 Subject: [PATCH] fix(curriculum): clarify create_spend_chart takes a list of categories (#67340) --- .../english/blocks/lab-budget-app/5e44413e903586ffb414c94e.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/blocks/lab-budget-app/5e44413e903586ffb414c94e.md b/curriculum/challenges/english/blocks/lab-budget-app/5e44413e903586ffb414c94e.md index d9c1ab34de8..b3fa3f645a4 100644 --- a/curriculum/challenges/english/blocks/lab-budget-app/5e44413e903586ffb414c94e.md +++ b/curriculum/challenges/english/blocks/lab-budget-app/5e44413e903586ffb414c94e.md @@ -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).