A simple command-line Python application that helps users track their daily expenses. The program allows you to add, view, calculate, delete, and save expenses using a text file for persistent storage.
- โ Add Expense โ Add a new expense with name and amount
- ๐ View Expenses โ Display all recorded expenses
- ๐งฎ Calculate Total Expenses โ Show the total amount spent
- โ Delete Expense โ Remove an expense from the list
- ๐พ Save Data โ Automatically saves expenses to a text file (
expenses.txt) before exiting - ๐ File Persistence โ Loads saved expenses when the program starts
- Python 3
- File Handling
- Loops & Conditional Statements
- Lists & Tuples
Daily-Expenses-Tracker
โ
โโโ expenses.py # Main Python program
โโโ expenses.txt # File where expenses are stored
โโโ README.md # Project documentation
- Clone the repository
git clone https://github.com/your-username/daily-expenses-tracker.git
- Navigate to the project folder
cd daily-expenses-tracker
- Run the Python program
python expenses.py
**** Daily Expenses Tracker ****
1. Add Expense
2. View Expenses
3. Calculating Expenses
4. Delete Expense
5. Saving and Exiting.....
- The program first attempts to load existing expenses from
expenses.txt. - All expenses are stored as (item, amount) tuples in a list.
- Users interact with the program using a menu-based system.
- When exiting, the program writes all expenses back to the file so they are saved for the next run.
- Add date tracking for expenses
- Export data to CSV or Excel
- Create a GUI version using Tkinter
- Add expense categories (Food, Travel, Bills, etc.)
- Show monthly statistics
If you like this project, feel free to โญ the repository!