A simple command-line expense tracker built with Python to practice object-oriented programming (OOP), user input handling, and exception handling.
- ➕ Add a new expense with an item name, cost, category, and description
- 📋 View all recorded expenses
- 🧮 Calculate total expenses
- 🛡️ Handle invalid input and prevent negative expense amounts
- 💻 Interactive command-line menu
- Python 3
- Object-Oriented Programming (OOP)
- Lists and loops
- Exception handling
Install Python 3 on your computer.
-
Clone this repository:
git clone https://github.com/uhsadiaa-dev/Expense_Tracker2.0.git
-
Open the project folder:
cd Expense-Tracker -
Run the program (replace
main.pywith your actual Python filename if needed):python main.py
Run the program and use the menu to add expenses, view your recorded expenses, calculate your total spending, or exit.
- Creating classes and objects
- Using
__init__()to initialize object attributes - Using
__str__()to display expense information - Managing expenses with a list
- Validating user input with
tryandexcept - Using loops and conditional statements to build a menu-driven application
- Support decimal amounts
- Add the ability to delete expenses
- Save expenses to a CSV file
- Organize expenses by category
- Analyze spending with NumPy
uhsadiaa-dev
This project is part of my journey learning Python and building projects to strengthen my programming skills.
⭐ More improvements coming as I continue learning!