MCPcopy
hub / github.com/qiwsir/StarterLearningPython / sorted_score

Function sorted_score

2code/20502.py:17–23  ·  view source on GitHub ↗

count the list for max to min.

(scores)

Source from the content-addressed store, hash-verified

15 return average
16
17def sorted_score(scores):
18 """
19 count the list for max to min.
20 """
21 score_lst = [(scores[k],k) for k in scores]
22 sort_lst = sorted(score_lst, reverse=True)
23 return [(i[1], i[0]) for i in sort_lst]
24
25def max_score(scores):
26 """

Callers 3

max_scoreFunction · 0.70
min_scoreFunction · 0.70
20502.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected