Tell us what’s happening:
As my code is currently written, the transactions for both of my categories are going on to the same ledger. Is the transfer method supposed to generate a new instance of the Category class so that there will be two separate ledgers? I get the feeling that it is, but I am at a loss for how to figure this out.
Your code so far
def transfer(self, amount, other_category):
if self.check_funds(amount):
self.withdraw(amount, description=f"Transfer to {other_category}")
self.deposit(amount, description=f"Transfer from {self.category}")
return True
else:
return False
pass
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:81.0) Gecko/20100101 Firefox/81.0
.
Challenge: Budget App
Link to the challenge: