pyBegin / projects / split-tip
🧮

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 an…

13 linesRunnable

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.