Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Task-2-KinzaAsif

A beginner Python expense tracker that adds up your spending in real-time. Built as Project 2 of my Python internship at DecodeLabs.

Expense Tracker 💸

A simple command-line expense tracker built with Python. You enter your expenses one by one, and the program keeps a running total — then shows your final amount spent when you're done.

Built as part of my Python internship at DecodeLabs (Batch 2026).


How to Run

Make sure Python is installed, then run:

python Project2.py


How to Use

  1. Run the script
  2. Enter an expense amount and hit Enter
  3. Keep adding expenses
  4. Type quit when you're done
  5. Your total spending will be displayed

Example

=== Expense Tracker === Enter expense (or 'quit' to finish): 2400 Added! Running total: $2400.00 Enter expense (or 'quit' to finish): 1200 Added! Running total: $3600.00 Enter expense (or 'quit' to finish): quit

Total Spent: $3600.00

Image

What I Learned

  • Accumulator pattern (total += expense)
  • While loops for continuous input
  • Type conversion with float()
  • Error handling with try/except
  • Sentinel values to exit a loop cleanly

Tech Used

Training Provider

DecodeLabs Industrial Training Batch 2026

  • Python Project 2

About

A beginner Python expense tracker that adds up your spending in real-time. Built as Project 2 of my Python internship at DecodeLabs.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages