Code Lab BetaBUILD. RUN. DISCOVER.
Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
Challenges / 02
Score Stats.
Your lesson
Given: scores = [72, 88, 95, 60]. Use for to compute total as the sum of all scores (do not use sum()). Then average = total / len(scores). Print min(scores), then max(scores), then average. Expected output:
60
95
78.75
Combines a manual accumulate loop with min/max/mean. Do not hardcode the results.
challenge_02.pyPYTHON
Loading the runtime… The first launch may take a little longer.
… 0/20000
CHECKSSTANDBY
01total is computed with for
02min/max/average come from scores
03console shows 60, 95, 78.75
…0/10000
ConsoleWrite the code. Bring it online.
›