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

Function max_score

2code/20502.py:25–31  ·  view source on GitHub ↗

the max scroe and the person's name.

(scores)

Source from the content-addressed store, hash-verified

23 return [(i[1], i[0]) for i in sort_lst]
24
25def max_score(scores):
26 """
27 the max scroe and the person's name.
28 """
29 lst = sorted_score(scores)
30 max_score = lst[0][1]
31 return [(i[0],i[1]) for i in lst if i[1]==max_score]
32
33def min_score(scores):
34 """

Callers 1

20502.pyFile · 0.70

Calls 1

sorted_scoreFunction · 0.70

Tested by

no test coverage detected