Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions Recipes Project.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
x = 2+2
print (x)
#Recipe
#marayah

def recipes():
"""
Description of the function

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Perhaps you could start off with a small introduction of what the function is for. That might also make the input and output slightly easier to interpret.

Input:
Ingredients that are available to user

Output:
All recipes that require only those ingredients
:return:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what :return: does. Do you mean to explain what the package returns, here?

"""
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, '...')


#importing recipes and store in dict varibale
import csv
recipes = csv.DictReader(open('recipes.csv'))
for row in recipes:
print(row)