Quantcast
Channel: Printing out high scores in a list - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



Printing 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
Browsing latest articles
Browse All 2 View Live


Latest Images