points = str(points)
l = open("leaderboard.txt","a")
l.write(points)
I am attempting to write a value of 'points' to an external notepad file in python however the file comes out blank each time I run the program. 'points' previously was an integer value however I converted it to a string in order to store it in my file. Chances are I am missing something simple, but I cannot work it out, so any help would be much appreciated. Also, apologies for formatting errors, I am relatively new to this website.