Getting keyerror when trying to pull description on budget project

I’ve got the budget putting everything into their proper categories and when I print the ledger it shows the amount and the description in the ledger. However when I try to extract the amount and the description for printing out the ledger in the desired format, it only pulls the amount then gives a keyerror on the description.

Here’s what I’ve got:

https://replit.com/@dchris/boilerplate-budget-app-1#budget.py

Some snippets of your code:

self.ledger.append({'amount' : amount, "descrption" : description})
...
descriptions = item['description']

If you look closely, you’ll notice one of the worst errors to come across: spelling mistakes. Especially when the mistake includes missing the smallest letter - the “i” in “descrption”

1 Like

my good lord, i must have looked for a spelling error fifty times and missed that.

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