Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getScore(string):
- return int(string.split(" ")[1]) #Replace with ur own get score from function
- sorted( list_of_scores, key=getScore )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement