Code Lab BetaBUILD. RUN. DISCOVER.
Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
Challenges / 02
Scoreboard.
Your lesson
scores = [("Ana", 10), ("Bo", 8), ("Ana", 5)]. Count points per name with dict.get. Sort by total desc, name asc. Print first line "name total". Expected: Ana 15.
Group + sort key.
challenge_02.pyPYTHON
Loading the runtime… The first launch may take a little longer.
… 0/20000
CHECKSSTANDBY
01dict count
02sorted
03Ana 15
…0/10000
ConsoleWrite the code. Bring it online.
›