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.
- 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
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
- The program asks the user to enter their name.
- The user enters their daily budget.
- The user enters the names and prices of three food items.
- The program calculates the total food expense.
- The user enters transport and other expenses.
- The program calculates the total amount spent.
- The remaining balance is calculated by subtracting total expenses from the daily budget.
- 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.
- 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
- Python 3.x installed on your system
-
Clone this repository or download the ZIP file
-
Open the project folder
-
Run the Python file using one of the following commands: or
-
Follow the on-screen instructions and enter your expense details
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
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)
Hasmi
Beginner Python Developer
This is my first Python project, created as part of my learning journey.
This project is licensed under the MIT License.
You are free to use, modify, and distribute this project for learning and personal use.
Thanks to online Python learning resources and the open-source community for making programming accessible to beginners.