Hi again, so I took a break from the budget app and focussed on the other 2 remaining projects (and finished them :)) and now returned again. I managed to solve a lot, but I don’t understand this problem with the spend chart. Can anyone help me in the right direction?
The spent chart shows an AssertionError and when reviewing it, it seems that when generating the histogram something happens with the 3rd line of letters (s o t), but I cannot find what it is exactly (nor do I understand what is different between what is generated (with ‘-’) and what is expected (with ‘+’).
I tried to reproduce the error in Python Tutor, but there everything works fine there.
the part of the code that generates the names vertically is from line 100 - 109 (see below)
longest_cat = len(max(cat_names, key = len)) # split category titles in letters and collect for digit in range(longest_cat) : vertical_cat = " " for name in cat_names : try : vertical_cat += " " + str(name)[digit] + " " except IndexError: vertical_cat += " "