I was coding a "game" in pygame and wanted to store highscore
, as a variable that takes the player's highest score and saves it. I would want it to look something like this:
if score > highscore:
highscore = score
Maybe I could save this in a separate text file, any suggestions??
Edit: I want to be able to close the console between times playing the game and still have the highscore save