From 88fb02f994677399f240b46c0f796f27570e95cc Mon Sep 17 00:00:00 2001 From: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> Date: Sat, 22 Mar 2025 15:01:10 +0100 Subject: [PATCH] feat: clarify chart instructions - Python Budget App (#59334) Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> --- .../build-a-budget-app-project/budget-app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/build-a-budget-app-project/budget-app.md b/curriculum/challenges/english/07-scientific-computing-with-python/build-a-budget-app-project/budget-app.md index 93fa34c3584..14783cd3d2d 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/build-a-budget-app-project/budget-app.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/build-a-budget-app-project/budget-app.md @@ -47,7 +47,7 @@ Total: 923.96 Besides the `Category` class, create a function (outside of the class) called `create_spend_chart` that takes a list of categories as an argument. It should return a string that is a bar chart. -The chart should show the percentage spent in each category passed in to the function. The percentage spent should be calculated only with withdrawals and not with deposits. Down the left side of the chart should be labels 0 - 100. The 'bars' in the bar chart should be made out of the 'o' character. The height of each bar should be rounded down to the nearest 10. The horizontal line below the bars should go two spaces past the final bar. Each category name should be written vertically below the bar. There should be a title at the top that says 'Percentage spent by category'. +The chart should show the percentage spent in each category passed in to the function. The percentage spent should be calculated only with withdrawals and not with deposits, and it should be the percentage of the amount spent for each category to the total spent for all categories. Down the left side of the chart should be labels 0 - 100. The 'bars' in the bar chart should be made out of the 'o' character. The height of each bar should be rounded down to the nearest 10. The horizontal line below the bars should go two spaces past the final bar. Each category name should be written vertically below the bar. There should be a title at the top that says 'Percentage spent by category'. This function will be tested with up to four categories.