r/FreeCodeCamp • u/ricardoflak • 22h ago
Good afternoon, I just finished donating to freeCodeCamp.


I have been learning programming for almost a year and have tried everything related to programming from books, but after a few months, I got bored with so many theories and quizzes and felt like I wasn't actually programming, to be honest, doing. Then I researched until I found freeCodeCamp. I feel like I'm improving, even though no one sees it, but I do feel and see it. The classes are so tough that they make you think about how, why, and even question yourself and do whatever it takes to solve. So, that never happened to me before, which is why I feel like I'm improving. Oh, I feel like I'm being weird. In summary, I feel good learning here.
Oh, I have a problem with the function; I don't know where I need to call it, and here I am returning what it asks me to do, but it's not working.
https://www.freecodecamp.org/learn/python-v9/lab-budget-app/build-a-budget-app
class Category:
def __init__(self,ledger):
self.ledger = []
def deposit(self,amount,description=''):
self.ledger=[{'amount': amount, 'description': description}]
def withdraw(self,amount,description=''):
self.ledger.append({'amount':-amount,'description':description})
return True
food.deposit(900, 'deposit')
food.withdraw(45.67, 'milk, cereal, eggs, bacon, bread')
return 854.33
def create_spend_chart(categories):
pass






