Mar-28-2021, 07:25 PM
don't store the dict in a py file.
Store it in a file, e.g. json and load it, then dump it back when you want to preserve the new data.
Of course, JSON is just an example, you can use simple text file, a db, etc.
Store it in a file, e.g. json and load it, then dump it back when you want to preserve the new data.
Of course, JSON is just an example, you can use simple text file, a db, etc.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs