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

Function min_score

2code/20502.py:33–39  ·  view source on GitHub ↗

the min score and the person's name.

(scores)

Source from the content-addressed store, hash-verified

31 return [(i[0],i[1]) for i in lst if i[1]==max_score]
32
33def min_score(scores):
34 """
35 the min score and the person's name.
36 """
37 lst = sorted_score(scores)
38 min_score = lst[len(lst)-1][1]
39 return [(i[0],i[1]) for i in lst if i[1]==min_score]
40
41if __name__ == "__main__":
42 examine_scores = {"google":98, "facebook":99, "baidu":52, "alibaba":80, "yahoo":49, "IBM":70, "android":76, "apple":99, "amazon":99}

Callers 1

20502.pyFile · 0.70

Calls 1

sorted_scoreFunction · 0.70

Tested by

no test coverage detected