Ask coding questions

← Back to all posts
Help Pls
YeetMstr

I want to know how to create accounts that save

Like in the fishing game, there were accounts that saved your progress

I want to know how to do this in python pls

Thanks!

Answered by HackermonDev [earned 5 cycles]
View Answer
Voters
seagu11
mkhoi
YeetMstr
Comments
hotnewtop
ash15khng

You could either use a text file or a database to save each account name.

YeetMstr

@ash15khng and @PDanielY Thank you for help but which would be better in terms of saving without forking onto your device?

HackermonDev

@epicman702 database

YeetMstr

@PDanielY Could you give me a code with this example?

HackermonDev

@epicman702 actually database is stored in you device but you could use remotemysql.
Here is an example with Python:

HackermonDev

@PDanielY you can get the username and password from remotemysql and the host is remotemysql.com

YeetMstr

@PDanielY Ok thank you!
I'll try figure it out
Looks complicated

HackermonDev

@epicman702 You can find more info here

YeetMstr

@HackermonDev hehe, I ended up using files after all these years

HackermonDev

You can use pickle