aboutsummaryrefslogtreecommitdiffstats
path: root/pizza.py
diff options
context:
space:
mode:
Diffstat (limited to 'pizza.py')
-rw-r--r--pizza.py14
1 files changed, 14 insertions, 0 deletions
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
+
+
+
+
+