the min score and the person's name.
(scores)
| 31 | return [(i[0],i[1]) for i in lst if i[1]==max_score] |
| 32 | |
| 33 | def 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 | |
| 41 | if __name__ == "__main__": |
| 42 | examine_scores = {"google":98, "facebook":99, "baidu":52, "alibaba":80, "yahoo":49, "IBM":70, "android":76, "apple":99, "amazon":99} |