Python high_scores is added
This commit is contained in:
parent
69234eb94e
commit
ea87636a4f
4 changed files with 113 additions and 0 deletions
8
python/high-scores/high_scores.py
Normal file
8
python/high-scores/high_scores.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
def latest(scores):
|
||||
return scores[-1]
|
||||
|
||||
def personal_best(scores):
|
||||
return max(scores)
|
||||
|
||||
def personal_top_three(scores):
|
||||
return sorted(scores, reverse=True)[0:3]
|
||||
Loading…
Add table
Add a link
Reference in a new issue