Created
October 13, 2021 19:12
-
-
Save 05t3/3227037e90347fbd1547e1158a19040b to your computer and use it in GitHub Desktop.
Simple Tip Calculator i created when learning python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Welcome to the Tip Calculator\n") | |
bill = float(input("What was the total bill? $\n")) | |
tip = int(input("How much tip would you like to give? 10, 12 or 15? \n")) | |
people = int(input("How many to split the bill?\n")) | |
bill_with_tip = tip / 100 * bill + bill | |
print(bill_with_tip) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment