From 72d9a686b4560dd468a35806989d3925dccdfa60 Mon Sep 17 00:00:00 2001 From: MarayahAy <83350135+MarayahAy@users.noreply.github.com> Date: Tue, 11 May 2021 18:19:14 -0400 Subject: [PATCH 1/2] first steps --- Recipes Project.py | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/Recipes Project.py b/Recipes Project.py index c759e01..3b9714e 100644 --- a/Recipes Project.py +++ b/Recipes Project.py @@ -1,2 +1,23 @@ -x = 2+2 -print (x) +#asking for available ingredients""" +ingredients = input("what ingredients do you have available? (please seperate each with a comma)") +print ('okay let me check what recipes we have available with', ingredients, '...') + + +#importing recipes and store in dict varibale +import csv +recipes = csv.DictReader(open('recipes.csv')) +for row in recipes: + print(row) + +def recipes(documentation): +""" Description of the function +Input: +Ingredients that are available to user + +Output: +All recipes that require only those ingredients + +""" + return documentation + + From a6a4367f5a9d5317a63a66c621f5d9dd53f6a3f7 Mon Sep 17 00:00:00 2001 From: MarayahAy <83350135+MarayahAy@users.noreply.github.com> Date: Tue, 11 May 2021 19:17:50 -0400 Subject: [PATCH 2/2] Update Recipes Project.py Documentation --- Recipes Project.py | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/Recipes Project.py b/Recipes Project.py index 3b9714e..844a85a 100644 --- a/Recipes Project.py +++ b/Recipes Project.py @@ -1,3 +1,18 @@ +#Recipe +#marayah + +def recipes(): + """ + Description of the function + Input: + Ingredients that are available to user + + Output: + All recipes that require only those ingredients + :return: + """ + print("Function does something..") + #asking for available ingredients""" ingredients = input("what ingredients do you have available? (please seperate each with a comma)") print ('okay let me check what recipes we have available with', ingredients, '...') @@ -9,15 +24,7 @@ for row in recipes: print(row) -def recipes(documentation): -""" Description of the function -Input: -Ingredients that are available to user -Output: -All recipes that require only those ingredients -""" - return documentation