TipCalculator is a beginner-friendly Python project that calculates how much each person should pay when splitting a bill, including a tip. Built as part of Angela Yuβs 100 Days of Code: Python Bootcamp, this script is perfect for learning input handling, arithmetic, and formatted output.
This Python CLI tool:
- Asks for the total bill amount
- Lets the user choose a tip percentage (e.g. 10%, 12%, 15%)
- Divides the total (bill + tip) by the number of people
- Outputs how much each person should pay, rounded to two decimal places
This project helps you practice:
input(),float(), andint()for user input and type conversion- Arithmetic operations and percentage math
- Using
round()for formatting results - Python
f-stringsfor clean output
Make sure you have Python 3 installed. Then run:
python tip_calculator.pyWelcome to the tip calculator!
What was the total bill? $150.00
What percentage tip would you like to give? 12
How many people to split the bill? 5
Each person should pay: $33.60TipCalculator/
βββ tip_calculator.py
βββ README.mdBoosted discoverability with relevant keywords:
- python tip calculator
- split bill calculator python
- 100 days of code python projects
- python beginner project
- restaurant tip calculator python
- how to calculate tip with python
- bill splitter script
This is my Day 2 project from Angela Yuβs Python Bootcamp on Udemy.
Follow along for more beginner-friendly Python mini-projects!
This project is open-source and available for personal learning use.
Feel free to β the repo if you're also on the #100DaysOfCode journey!
