Hm! It won't change as the file is already written to the disk.
You can load it, do what you want with its content and then you can write it back.
You are using the import statement to get the variable. Is this file a python one? With .py at the end of the name.
Anyway, to permanently store some data you can try do save it as json or csv for example. Python has built-in tools to handle both.
You can load it, do what you want with its content and then you can write it back.
You are using the import statement to get the variable. Is this file a python one? With .py at the end of the name.
Anyway, to permanently store some data you can try do save it as json or csv for example. Python has built-in tools to handle both.