Have the user enter multiple recipe names and a list of ingredients for the recipes, and store these in a list
def recipe(): recipe_list = [] while True: recipe_name = input("Recipe name: ") if recipe_name == "x": break ingredients = input("Ingredients: ") recipe_list.append([recipe_name, ingredients]) return recipe_list recipe()