0

Would it be possible to store all your Python files in the same directory, and achieve data persistence?

Iā€™m trying to make a game that allows player to log in and continue where they left off, but that requires persistence. Iā€™d also like all my Python files to be stored in the same directory so I can import custom modules and classes.

21st Dec 2024, 5:00 AM
Hiking Hiker
4 Answers
+ 1
you can't have persistent data in Sololearn, not that I'm aware of. Perhaps others have a workaround. Maybe if you are able to access an external database api where you can read and write data...
21st Dec 2024, 7:11 AM
Bob_Li
Bob_Li - avatar
+ 1
Good idea!
21st Dec 2024, 8:14 AM
Hiking Hiker
0
pickle, sqlite, json... etc for data storage venv, pyenv, poetry... etc for dependency management
21st Dec 2024, 6:50 AM
Bob_Li
Bob_Li - avatar
0
I meant within the sololearn environment, not using a regular IDE
21st Dec 2024, 6:59 AM
Hiking Hiker