count the list for max to min.
(scores)
| 15 | return average |
| 16 | |
| 17 | def 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 | |
| 25 | def max_score(scores): |
| 26 | """ |