Python Developer / Testing with pytest
Stage 03 · 03 · Craft · skill 2 of 3
If it is not tested, it is a demo. Write assertions that document behaviour.
Recommended first: Functions & scope
pytest · why we picked it
Implement average(nums) that returns the mean, or None for an empty list.
python editor · loading…
python · sandboxed in your browser
Output
Run to see output.
A successful run records “practiced” on this skill. Nothing leaves your browser.
Not demonstrated yet
Notes