Stats and First Match
Challenge on lesson: Checkpoint: Loops
CHALLENGE
Difficulty: beginner+25 XP
Implement total(scores) (sum of all elements), average(scores) (0 when empty), and first_below(scores, limit) returning the INDEX of the first element below limit, or -1 if none.
Press Submit to check your solution.
Back to lesson: Checkpoint: Loops