Skip to content

πŸ’Έ A simple Python script to split a bill and calculate tip – built for Day 2 of Angela Yu’s 100 Days of Code.

Notifications You must be signed in to change notification settings

Johan1974/TipCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Tip Calculator

πŸ’Έ TipCalculator – Simple Python Bill Splitter with Tip

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.

πŸš€ What This Project Does

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

🧠 What You’ll Learn

This project helps you practice:

  • input(), float(), and int() for user input and type conversion
  • Arithmetic operations and percentage math
  • Using round() for formatting results
  • Python f-strings for clean output

πŸ’» How to Run the Tip Calculator

Make sure you have Python 3 installed. Then run:

python tip_calculator.py

🧾 Example Output

Welcome 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.60

πŸ“‚ Project Files

TipCalculator/
β”œβ”€β”€ tip_calculator.py
└── README.md

πŸ“ˆ SEO Keywords

Boosted 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

πŸ—οΈ Part of the 100 Days of Code

This is my Day 2 project from Angela Yu’s Python Bootcamp on Udemy.
Follow along for more beginner-friendly Python mini-projects!

πŸ“œ License

This project is open-source and available for personal learning use.


Feel free to ⭐ the repo if you're also on the #100DaysOfCode journey!

About

πŸ’Έ A simple Python script to split a bill and calculate tip – built for Day 2 of Angela Yu’s 100 Days of Code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages