Home / Projects / Expense Tracker
Day 5 · Day 5: Files & Error Handling

Expense Tracker

Build an expense tracker that lets users add expenses with a category and amount, view a summary by category, and save/load expenses to/from a CSV file so data persists between runs.

Requirements

1. Store each expense as a dictionary with: date, category, amount, description.
2. Implement adding a new expense via user input.
3. Implement viewing all expenses in a readable table format.
4. Implement a summary showing total spending per category.
5. Save expenses to a CSV file using the csv module.
6. Load expenses from the CSV file on startup if it exists.
7. Handle file-not-found errors gracefully when loading.
50 XP on completion Back to Day 5

Your Code

Output
Click "Run" to execute your code...

Log in to mark this project complete and earn XP.