You will need some time of database or storage. There are a few ways to do this.
- You can create a CSV file (or a flat file with a custom delimiter). Each time your program is opened read from the CSV file and put the data in a list. Vice-versa you can just write new lines and save the file when new data is added. Although this is simple to begin with it can get even more complicated it you wish to do things like update data later on.
- You can use a database. The easiest one to get started with is sqlite which creates a local DB file and doesn't need database software.
- You can go further and use something like pickle but I can't see this being useful or the best use of your time in this case.
Let me know if this helped and if you have any questions.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…