Tell us what’s happening:
I don’t really need help more just wanted to point this fact out. Test 20 states: 20. Each line in create_spend_chart chart should have the same length. Bars for different categories should be separated by two spaces, with additional two spaces after the final bar.
However if you do not include the Title in your my_chart string variable and just try to print it at the beginning of the function. You will fail test 17: Title at the top of create_spend_chart should say Percentage spent by category
This means that if you try to make all of your lines the length of the title (28) you will never pass the tests as it is testing for the length of the lines within the chart, not including the title Which in my instance was (17).
I tested this several times while printing the length of each line in the terminal. The only way to pass the test was to have the title line included in the variable you have set for your chart. The title line needs to be (28) characters long, and the line length within the My_chart variable each being (17) characters long (in my instance). I spent way longer on this than I care to admit. Just wanted to pass this along if anybody gets stuck on it because it felt extremely confusing for me. I may just lack reading comprehension skills though. Good luck and Happy Coding!
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Challenge Information:
Build a Budget App - Build a Budget App