A simple command-line Expense Tracker written in Python by Jabez Jesudason Jena. This version stores expenses in a local text file, allowing you to track your spending across sessions.
- Add expenses with category and amount
- View all saved expenses
- Automatically saves data to a file (
e.txt) - Handles missing file errors and invalid input
- Lightweight and beginner-friendly
Expense Tracker!
1.Add Expense 2.View Expenses 3.Exit
Example Entry: Enter the category of expense: Food Enter the amount spent: 250 Expense Added successfully!
Example View: Your Expenses: Food - 250.0 Transport - 100.5
- Python 3.x
Save the script as expense_tracker.py and run:
python expense_tracker.py
expense-tracker-file-python/
├── expense_tracker.py # Main Python script
├── e.txt # Data file (auto-generated)
└── README.md
📌 To Improve
Add timestamps or dates to each expense
Add filtering by category
Calculate total expenses
Export to CSV or JSON
Add delete/edit functionality
👨💻 Author
Created by Jabez Jesudason Jena
📝 License
This project is licensed under the MIT License.