🧮

Split Tip Calculator

Python13 lines· A simple console tip calculator. Enter a bill amount, a tip percentage, and the number of people, and it prints how much each person owes in tip an…
Original project by @DevTomilola-OS — view source on GitHub
Ready when you are
README· what to build

Split Tip Calculator

A simple console tip calculator. Enter a bill amount, a tip percentage, and the number of people, and it prints how much each person owes in tip and in total.

Example

Welcome to the Tip calculator
Enter your bill amount ($): 85.00
what percentage of tip you want to give? 5, 10, 12 or 15?
15
How many people to split the bill amount: 4
Each person has to pay $3.0 in tip and $24.0 in total

How to run on localhost

python Tip_calculator.py

Dependencies

Standard library only.

split-tip.py· Python 3.x
22 lines
Console· terminal