diff options
| author | bwalterscoding <40584788+bwalterscoding@users.noreply.github.com> | 2018-08-05 00:25:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-05 00:25:44 -0400 |
| commit | 35e135c9dc8dcb9ccdce34a8818e051b5bd04281 (patch) | |
| tree | f36fe5988ab4bc08fb77e5a42ff5b5aef52ada64 | |
| parent | 8117057f13336f96882abfef4ee10dfdc6a77a08 (diff) | |
Add files via upload
| -rw-r--r-- | pizza.py | 14 |
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
+
+
+
+
+
|
