how do I write to a file and not removing the file/the content of the file
values = '113'
with open("file.txt", 'w') as output:
for row in values:
output.write(str(row) + '\n')
how do I fix it?
and I planing to use it as a score board of my snake game I made in pygame