Skip to content

Wareeday/Python-console-based-expense-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Expense Tracker – Python Console App

Overview

This is a simple Python console-based expense tracker. It demonstrates basic Python concepts such as functions, dictionaries, lists, loops, and user input handling. The program allows adding expenses, viewing a monthly summary, calculating total expenses, and generating a simple invoice.

Features

  • Add an expense with category and amount (PKR)
  • View a predefined monthly expense summary
  • Calculate total expenses
  • Generate a basic invoice
  • Simple menu-driven interface

File Description

  • The script contains multiple functions:

    • add_expense(amount, category) – Adds and displays an expense
    • monthly_summary() – Shows category-wise monthly expenses
    • total_expense() – Calculates total expenses
    • generate_invoice(client, amount) – Prints an invoice
  • A while loop provides a simple interactive menu

How to Run

  1. Make sure Python 3 is installed.

  2. Save the file as expense_tracker.py.

  3. Run the program using:

    python expense_tracker.py

Example Output

Expense Added: Food - 500 PKR
Food : 1500
Transport : 800
Bills : 2500
Total Expense: 2500
Invoice Generated
Client: Ali Khan
Amount: 5500

Notes

  • Currency used: PKR
  • Expense values are currently hardcoded for demonstration purposes

Future Improvements

  • Store expenses dynamically
  • Save data to a file or database
  • Add date-wise expense tracking
  • Improve input validation

License

This project is for learning and practice purposes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages