Python, Shared Preferences?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Python, Shared Preferences??

Is there any python feature similar/equivalent to Android Studio's (Java) "share preference" to store small data permanently??

10th Jan 2019, 12:36 PM
Toni Sedjoah
Toni Sedjoah - avatar
1 Answer
+ 2
Shared Preference is an Android feature not Java. If you wrote a PC program in Java, you could not use it. As to Python providing something similar, I can't guarentee it. But, this looks like it might give you that. https://docs.python.org/2/library/shelve.html
11th Jan 2019, 4:43 PM
John Wells
John Wells - avatar