Python Forum
Creating a persistent list/database - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Creating a persistent list/database (/thread-16426.html)



Creating a persistent list/database - Trinx - Feb-27-2019

I'm trying to create a program that saves info that is entered in by the user. How would I create a python program that saves information entered in by a user so that next time someone runs the program the information that was entered in is still available? Thanks


RE: Creating a persistent list/database - ichabod801 - Feb-27-2019

Lots of ways. For a simple table of data you can use the csv module. There are lots of packages for relational databases, starting with sqlite. Or you can do custom text files or binary files in formats you create yourself. There is also the pickle package, which can save Python objects, but that's not used very much.