Brainlag
  1. Library
  2. Challenges
  3. Python

A leaderboard of best scores

Turn a log of every round played into a top-N leaderboard: one row per player, their best score, ties in name order.

PythonCore25 minPremium

Premium

Inside: 3 checks, no scaffolding.

See Premium£7.99 a month. Already Premium? Sign in

Code editor. Press Control or Command plus Enter to run the code. Tab indents; to move focus out of the editor, press Escape and then Tab.