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

Method add_category

Expense_Tracker/expense_tracker.py:11–13  ·  view source on GitHub ↗
(self, category)

Source from the content-addressed store, hash-verified

9 self.expenses[category].append((date, amount))
10
11 def add_category(self, category):
12 if category not in self.categories:
13 self.categories[category] = 0
14
15 def view_expenses(self):
16 for category, items in self.expenses.items():

Callers 1

expense_tracker.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected