So there should be a minimum of 3 questions, but 2 possible answers for each question. The questions are about whatever you want it to be. It's your own create your own adventure game. For example, ask the user to pick the right path or the left path. When they do, it will trigger a new question based on the answer that the user gave. I need to be able to save the spot the user was at and then allow them to come back later. Each question needs to be saved as it's own function, so you can call it back.
I do not understand how to save my code as a file that the computer can call back and I really need help
I expect that the file will be saved for each of the questions and able to be called back for my teacher to give me a good grade!
print("do you like cookies?") inp = str(input('please enter yes or no')) approve = 'do you like cats' notapprove = 'do you like dogs' if inp == 'yes': print(approve) elif inp == 'no': print(notapprove) inp = str(input('please enter yes or no')) cats = 'do you like coke or pepsi' dogs = 'do you like the ocean or lake' if inp == 'yes': print(cats) elif inp == 'no': print(dogs) inp = str(input('please enter yes or no'))