I am trying to figure out if there is a way to save data in python so that I can use it again if I close VS Code.
For example:
fruit = input("What is your favorite fruit?")
Let's say that the user inputs "apple"
. Is there a way for me to save that information in VS code so that when I close and open the application, the code will still remeber that the user's favorite fruit is apple?
I haven't tried anything yet because my Python knowledge is very limited. If someone could please explain this to me and explain all the functions needed like I am 5 years old, that would be great.