Skip to content

saiyadhasmi/Expense-Tracker-Python-Code-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Python Expense Tracker (Beginner Project)

Overview

This is my first Python project, created to practice and demonstrate a strong understanding of Python fundamentals such as variables, user input, type conversion, and basic arithmetic operations.

The program allows users to enter their daily budget and expenses across different categories, then calculates the total amount spent and the remaining balance. The project focuses on writing clean, readable, and beginner-friendly code while solving a real-world problem: personal expense tracking.


Project Objectives

  • Understand how to use variables to store and manage user data
  • Practice taking input from users using the input() function
  • Learn how to convert string input into numbers using int()
  • Perform basic mathematical calculations
  • Display clean and formatted output using print()
  • Build confidence by completing and publishing a full Python project on GitHub

Concepts Covered

This project focuses on the following Python basics:

  • Variables – Store user data such as name, budget, and expenses
  • User Input (input()) – Accept values from the user through the terminal
  • Type Conversion (int()) – Convert input data into numbers for calculations
  • Arithmetic Operations – Addition and subtraction for calculating totals and balances
  • Print Formatting – Displaying results in a clean and readable format

How the Program Works (Step-by-Step)

  1. The program asks the user to enter their name.
  2. The user enters their daily budget.
  3. The user enters the names and prices of three food items.
  4. The program calculates the total food expense.
  5. The user enters transport and other expenses.
  6. The program calculates the total amount spent.
  7. The remaining balance is calculated by subtracting total expenses from the daily budget.
  8. A formatted daily expense report is displayed on the screen.

This process is repeated for multiple users to simulate a real-world scenario where more than one person is tracking expenses.


Features

  • Beginner-friendly and easy-to-read code
  • Tracks expenses for multiple users
  • Categorizes spending into food, transport, and other expenses
  • Calculates total spending and remaining budget
  • Clean and professional terminal output

How to Run This Project

Requirements

  • Python 3.x installed on your system

Steps

  1. Clone this repository or download the ZIP file

  2. Open the project folder

  3. Run the Python file using one of the following commands: or

  4. Follow the on-screen instructions and enter your expense details

Learning Outcome

By completing this project, I learned how to:

  • Build a complete Python program from scratch
  • Structure code in a readable and organized way
  • Debug common beginner mistakes
  • Work with user input and numerical data
  • Use GitHub to publish and document a software project

Future Improvements

Some features that can be added in future versions:

  • Input validation (preventing negative or invalid numbers)
  • Support for floating-point values (decimal currency)
  • Monthly expense tracking
  • File saving for reports
  • Graphical user interface (GUI)

Author

Hasmi
Beginner Python Developer
This is my first Python project, created as part of my learning journey.


License

This project is licensed under the MIT License.
You are free to use, modify, and distribute this project for learning and personal use.


Acknowledgment

Thanks to online Python learning resources and the open-source community for making programming accessible to beginners.

About

My first Python project — a beginner-friendly expense tracker that tracks daily spending for multiple users using variables, input, and basic calculations. Built to practice real-world budgeting logic and clean beginner-level code structure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors