So the code prints fine and does everything as it should, but it’s not being accept by repl.it. From other posts on this forum I assume it’s a formatting issue, but, I can’t seem to figure out where the problem arises. Any help will be appreciated, thanks in advance.
The first line is your output, the second line the expected output. A quick glance at your code suggest you are using an .rstrip() or so, deleting the spaces which you are supposed to keep.
I deleted the .rstrip() as you suggested and it still didn’t work. I thought it could be how I did the bars in a list, but it’s not that as I’ve rewritten that section. Honestly, I can’t see what the problem is now.
'Perc[170 chars] 10| o o o \n 0| o o o \n ----------[206 chars] \n'
'Perc[170 chars] 10| o o \n 0| o o o \n ----------[204 chars] t '
First thing to notice is your output has “o” in the 10-row for Business, but it should be " ". So I guess you got a rounding mistake there → the task is to ALWAYS round down to the nearest 10.
Second thing is your output ends with “/n” while the expected output doesn’t.