← Questions

Average of a list, or zero when it is empty

0
WaymoCodingLast asked Jul 2026

A warm-up from a data online assessment: given a list of numbers, return their arithmetic mean, and return 0 when the list is empty.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding