Python Budget App: Function_Create_Spent_Chart doesn't match with UnitTest

Tell us what’s happening:
Hi there :slight_smile:
I got a problem and I don’t understand why I got this fail, and the output of the function Create_Spent_Chart of my code looks nice, but there is still a problem and I don’t know the cause.
Thank you in advance for your help.

Your code so far

Link: https://repl.it/join/nrljhnfs-maxabbs


**Your browser information:**

User Agent is: <code>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36</code>.

**Challenge:** Budget App

**Link to the challenge:**
https://www.freecodecamp.org/learn/scientific-computing-with-python/scientific-computing-with-python-projects/budget-app

Please either link to you project or at least copy the failure message :wink:
Because without knowing WHAT problem you have, nobody can help you.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Hi yes sorry, it wasn’t usefull, I edit my post by adding the link to my project :slight_smile:
Thank you for your feedbacks :slight_smile:

You definitly have to check your calculation or how the chart is created.
Looking at the chart and the percentages - those are only about 60%. It must be 100% - well given it’s 10% steps on 3 bars, it could “look” like 130%.

Ok thank you I gonna check

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.