💰 Expense Tracker (Python)
📌 Overview
Expense Tracker is a command-line Python application designed to help users record and manage their daily expenses. Users can add expenses, view recorded transactions, calculate total spending, and generate basic expense statistics.
This project was developed as part of the Decode Labs Python Internship Program to demonstrate the use of Python data structures, loops, functions, accumulators, and mathematical operations.
✨ Features
- ➕ Add Expense
- 📋 View All Expenses
- 🗑️ Delete Expense
- 💰 Calculate Total Expenses
- 📈 Calculate Average Expense
- 🔺 Show Highest Expense
- 🔻 Show Lowest Expense
- ✅ Input Validation
- 🚪 Exit Program
🛠️ Technologies Used
- Python 3
- Lists
- Functions
- Loops
- Conditional Statements
- Exception Handling
📂 Project Structure
Expense-Tracker-Python/
│
├── expense_tracker.py
├── README.md
└── screenshots/
🧠 Concepts Implemented
Lists
Used to store all expense entries.
Functions
Improves code readability and modularity.
Loops
Used for menu navigation and displaying expenses.
Accumulator Pattern
total = total + expense
Used to calculate the total amount spent.
Exception Handling
try:
amount = float(input())
except ValueError:
print("Invalid Input")
Prevents program crashes due to invalid user input.
▶️ How to Run
Clone Repository
git clone https://github.com/YOUR_USERNAME/Expense-Tracker-Python.git
Navigate to Project Folder
cd Expense-Tracker-Python
Run Program
python expense_tracker.py
📷 Sample Output
========================
EXPENSE TRACKER
========================
1. Add Expense
2. View Expenses
3. Show Total Expenses
4. Delete Expense
5. Show Statistics
6. Exit
Enter your choice:
🎯 Learning Outcomes
Through this project, the following concepts were practiced:
- Data Processing
- Mathematical Calculations
- List Operations
- User Input Handling
- Program Logic Development
- Backend Programming Fundamentals
👨💻 Author
Priyansh Masiyava
Computer Engineering Student
Decode Labs Python Internship Project
📜 License
This project is developed for educational and internship purposes.