Skip to content

smiling25261/Expenses-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Daily Expenses Tracker (Python)

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.


๐Ÿ“Œ Features

  • โž• 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

๐Ÿ› ๏ธ Technologies Used

  • Python 3
  • File Handling
  • Loops & Conditional Statements
  • Lists & Tuples

๐Ÿ“‚ Project Structure

Daily-Expenses-Tracker
โ”‚
โ”œโ”€โ”€ expenses.py        # Main Python program
โ”œโ”€โ”€ expenses.txt       # File where expenses are stored
โ””โ”€โ”€ README.md          # Project documentation

โ–ถ๏ธ How to Run the Program

  1. Clone the repository
git clone https://github.com/your-username/daily-expenses-tracker.git
  1. Navigate to the project folder
cd daily-expenses-tracker
  1. Run the Python program
python expenses.py

๐Ÿ“ท Example Menu

**** Daily Expenses Tracker ****
1. Add Expense
2. View Expenses
3. Calculating Expenses
4. Delete Expense
5. Saving and Exiting.....

๐Ÿง  How It Works

  • 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.

๐Ÿš€ Possible Future Improvements

  • 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!


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages