← Back to lesson⬡ LAB · Build the guarded function

Implement average() so it raises ValueError on an empty list and returns the mean otherwise. Run it until the checkpoint passes.

🎯 Checkpoint: edit the code and Run until the output is correct.
main.py
▸ output
Booting the Python runtime…