I have a program that saves the scores you get in the program in a seperate file, however, the file saves the score as this:
2 4 6 8 9 8
My problem is that I cannot convert these to integers, so that I then can add them all together to a total sum.
This is as far as I have come:
scores = open("scores.txt", "r")
After that everything I have tried just ends up in different errors.
Anyone got any idea of what to do?
2 4 6 8 9 8in a single linespaceseparated??s, you needint(s)to make an int out of it