Compute the arithmetic mean of a list of numbers with a clear edge case for empty lists.
Constraints
Example
>>> average([1, 2, 3, 4, 5]) 3.0 >>> average([2.5, 3.5]) 3.0 >>> average([]) 0.0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints