Anonymous user
Ranking methods: Difference between revisions
→{{header|Python}}: mc_rank without name: first and using enumerate.
(→{{header|Python}}: New d & sc rankers.) |
(→{{header|Python}}: mc_rank without name: first and using enumerate.) |
||
Line 26:
<lang python>def mc_rank(iterable, start=1):
"""Modified competition ranking"""
for n, item in enumerate(iterable, start-1):
if
else:
lastresult, lastrank, fifo =
while fifo:
yield
|