Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

💸 Mini Project: Expense Tracker (File-Based)

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.

✨ Features

  • 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

🖥️ Example Usage

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

🚀 Getting Started

Prerequisites

  • Python 3.x

Run the App

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.

About

A simple Python CLI Expense Tracker that saves data to a file. Add and view categorized expenses directly from the terminal.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages