This is the subject of the requirement " 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."
Please I need your collaboration, I’m finishing the project “budget App” but in the last unit testing there is something confusing for me in the requirement specify “The height of each bar should be rounded down to the nearest 10” in this unit testing there are 3 values to show in the bar chart =
1.- self.food.withdraw(105.55) --> here is my confusion in the bar char is rounded down to 70 but I think the value must be rounded to 100 ???
2.- self.entertainment.withdraw(33.40) --> this is fine is rounded down to 30 in the bar chart
3.- self.business.withdraw(10.99) --> this is fine is rounded down to 10 in the bar chart
Thanks for your collaboration.
Have a nice day.