exercism

Exercism solutions.
git clone git://code.dwrz.net/exercism
Log | Files | Refs

high_scores.py (288B)


      1 def latest(scores):
      2     return scores[-1]
      3 
      4 def personal_best(scores):
      5     return max(scores)
      6 
      7 def personal_top_three(scores):
      8     return sorted(scores, reverse=True)[:3]
      9 
     10 def latest_after_top_three(scores):
     11     return latest(scores)
     12 
     13 def scores_after_top_three(scores):
     14     return scores