← Back to the lessonYour work saves on this deviceAll 42 projects →

Digital Literacy · Lesson 5 project

Code a reusable score analyzer

A checked function that averages a list, preserves reusable logic, and handles an empty list safely.

Lists and functions · lesson project

Reusable score analyzer

Calculate an average from a list while defining honest behavior for an empty or invalid collection.

  • Lists
  • Functions
  • sum and len
  • Edge cases
Runs in this browserIsolated worker · no account secrets · first engine load needs internet
main.py6 lines · Ctrl/⌘ + Enter runs
Saved on this devicePython 3 · browser runtime
ConsolePython engine loads when you first run the project.
Your program output and errors will appear here.
Deterministic checks

Prove the behavior

Predict first, run the program, then check normal, boundary, and invalid inputs.

Close the loop

Explain what changed.

After the checks pass, name one decision, one failure you corrected, and one improvement you would make next. That explanation is part of the project.

Return to the lesson