def sorted_score(scores):
 score_lst = [(scores[k], k) for k in scores]
 sort_lst = sorted(score_lst, reverse=True)
 return [(i[1], i[0]) for i in sort_lst]

def sorted_score ( scores ) : score_lst = [ ( scores [ k ] , k ) for k in scores ] sort_lst = sorted ( score_lst , reverse = True ) return [ ( i [ 1 ] , i [ 0 ] ) for i in sort_lst ]
count the list for max to min .