import pickle
variable = "Hi"
#Save the variable
pickle.dump(variable, open("variableStoringFile.dat", "wb"))
#Load the variable
variable = pickle.load(open("variableStoringFile.dat", "rb"))
SAVE DATA IN PYTHON USING 'W' MODE.'W' MEANS WRITE MODE USING STRING