I am making a game in python. At the beginning, the User enters his name and when he finishes the game, the Programm is saving the name and the playing time in a text file, like this:
Playerx: 12:04
Playery: 4:54
Playerz: 7:12
The program converts the text file to dictionary, like this:
scorelist = {'Playerx': '12:04', 'Playery': '4:54', 'Playerz': '7:12'}
Now I am searching for a possibility to sort the elements and print the 3 lowest at the end (highscore). Can you help me?