From 35e135c9dc8dcb9ccdce34a8818e051b5bd04281 Mon Sep 17 00:00:00 2001 From: bwalterscoding <40584788+bwalterscoding@users.noreply.github.com> Date: Sun, 5 Aug 2018 00:25:44 -0400 Subject: Add files via upload --- pizza.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pizza.py diff --git a/pizza.py b/pizza.py new file mode 100644 index 0000000..2b4b46d --- /dev/null +++ b/pizza.py @@ -0,0 +1,14 @@ +distance = float(input ("Give me your round trip distance in miles: ")) +wear = 0.1 +print(distance * wear) +print = float(input ("How much is the order: ")) +price = input +print = float(input ("Give me the total amount given to you: ")) +amount = input +print (amount - price) +print = ("After gas and wear-n-tear, your net tip is " + 2.6 / 30 * distance ) #price per gallon / mpg * distance + + + + + -- cgit v1.3