This is a command-line based Python program for recording and reviewing daily personal expenses.
- Add an expense with date, category, amount, and a note.
- View all recorded expenses.
- View total spending and spending summary by category.
- Automatically saves and loads data from a file.
- When the program starts, it loads previously saved expenses from a CSV file.
- The user is shown a menu with options to:
- Add a new expense
- View all recorded expenses
- View a total and category-wise summary
- Exit the program
- When adding an expense, the user is prompted to enter the date, category, amount, and an optional note.
- All expenses are saved in a file named
expenses.csvso they remain available the next time the program is run.
Expense-Tracker.py– The main Python script.expenses.csv– The file where all expenses are saved. This file is created automatically if it does not exist.
- Python 3.x
- No external libraries are required.
From a terminal or command prompt, run the following:
python expense_tracker.py