High Scores
From Exercism PythonMITOriginal pagePython1 class period1 exercise12 graded tests
High Scores
Instructions
Manage a game player's High Score list.
Your task is to build a high-score component of the classic Frogger game, one of the highest selling and most addictive games of all time, and a classic of the arcade era. Your task is to write methods that return the highest score from the list, the last added score and the three highest scores.
In this exercise, you're going to use and manipulate lists.
Python lists are very versatile, and you'll find yourself using them again and again in problems both simple and complex.
- Data Structures (Python 3 Documentation Tutorial)
- Lists and Tuples in Python (Real Python)
- Python Lists (Google for Education)
Open the
01folder and editmain.py. Run Tests checks it.
For teachers
High Scores
Students solve Exercism's “High Scores” Python exercise in CS Room, with Exercism's own tests.
- Time: 1 class period
- Tests: 12, set up for you when you import the lesson
- Practices: classes