Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- result_f=open("results.txt")
- scores={}
- for line in result_f:
- (name, score)=line.split()
- scores[score]=name
- result_f.close()
- for each in sorted(scores.keys(), reverse=True):
- print(each+' '+scores[each])
- scores.values()
- scores.keys()
Add Comment
Please, Sign In to add comment