Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. dictionary = {
  2. score_player_one : player_one,
  3. score_player_two : player_two,
  4. score_player_three : player_three
  5.  
  6. sorted_dictionary = sorted(dictionary.items(), key = operator.itemgetter(0), reverse = True )
  7. print("The ranking is: " + str(sorted_dictionary))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement