Skip to content

Commit 6f77424

Browse files
author
DirDraggo
committed
added recipe
somehow I had joes code for recipe. It is mine now and it is better than joes
1 parent 5dd932a commit 6f77424

File tree

2 files changed

+10
-24
lines changed

2 files changed

+10
-24
lines changed

CodeHS/3/5/9/Recipe-Travis.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ingredient_one=input("Enter ingredient 1: ")
2+
ingredient_one_weight=float(input("Ounces of " + str(ingredient_one) + ": "))
3+
ingredient_two=input("Enter ingredient 2: ")
4+
ingredient_two_weight=float(input("Ounces of " + str(ingredient_two) + ": "))
5+
ingredient_three=input("Enter ingredient 3: ")
6+
ingredient_three_weight=float(input("Ounces of " + str(ingredient_three) + ": "))
7+
number_servings=int(input("number of servings: "))
8+
print "Total ounces of " + str(ingredient_one) + ": " + str((float(ingredient_one_weight)*float(number_servings)))
9+
print "Total ounces of " + str(ingredient_two) + ": " + str((float(ingredient_two_weight)*float(number_servings)))
10+
print "Total ounces of " + str(ingredient_three) + ": " + str((float(ingredient_three_weight)*float(number_servings)))

CodeHS/3/5/9/recipe.py

-24
This file was deleted.

0 commit comments

Comments
 (0)