MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / view_expenses

Method view_expenses

Expense_Tracker/expense_tracker.py:15–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13 self.categories[category] = 0
14
15 def view_expenses(self):
16 for category, items in self.expenses.items():
17 total_amount = sum(amount for _, amount in items)
18 print(f"{category}: ${total_amount}")
19
20 def view_categories(self):
21 print("Categories:")

Callers 1

expense_tracker.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected