Budget app unfamiliar with correct output of create_spend_chart

Could any one please help me with the correct output of the dashes in the create_spend_chart.
I am including link to my project. Thanks in advance.
FreecodeCamp Budget APP

It needs to look exactly like the example.

100|’
‘90|’
‘80|’
‘70|’
‘60|’
‘50|’
‘40|’
‘30|’
‘20|’
‘10|’
’ 0|’
’ ----------

Why is everything in ‘quotes’ like this? Need to get rid of those to start.

Look at the last test in test_module.py. It will show you exactly what your output string needs to look like. Sometimes you will need to check the tests so you can code for exactly what they check for.

Thank you. I made the mistake to use Python f strings. It added the quotation marks. I’m currently still trying to figure out how to add the percentage characters on the graph. Still unsure if my dashes are correctly spaced. I personally counted dashes. And multiply one dash by ten and add spacing. To get line under graph. I noticed that other students on forum calculated the dashes by counting length of the categories.

Either way is fine. If you count the number of categories, then it will still work if there are more categories. In this case, you know there will be only 3, so you can hard code the dashes. Both ways will print the same number of dashes and pass the test.

When you get to line 50 for example, you need to build that line with '50| ’ then check if the first category is >=50 and if that’s true, put an ‘o’ and if that’s false, put a ’ '.

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