Answer by aIKid for Printing out high scores in a list
highscores is a list, so you need to loop over it:def highscores(self): sf = open('highscore.txt', 'r') highscores = sf.readlines() sf.close() top = 130 for highscore in highscores: thescores =...
View ArticlePrinting out high scores in a list
So in my menu for my game I want to be able to print out the high scores from a .txt file line by line, but with my current code it just adds all the scores to one line could someone please help?, I am...
View Article
More Pages to Explore .....