Hi I am working on a program to store some files to a text document that can be reloaded when necessary. Below is the beginning of the code however when run I receive a trace back error stating "recipe_title is not defined" when I thought I had defined it as the name of the text file. Please help show me what I have done wrong.
import sys
opt=0
def choice1():
print("WORKED")
def choice2():
Recipe_Name = input("Please enter a recipe name: ")
Recipe_List = open(recipe_title.txt,"w")
Recipe_List.write(recipe_title+"\n")
def ingredient_input_loop(recipe_title, ):
Recipefile = open(recipe_title,"w")
if(ingredient== "end" or "End" or "END" or "EnD" or "eNd" or "enD" or "ENd" or "eND"):
Recipe.write(recipe_title)