Implement a generic mean function that respects type bounds.
Constraints
Example
>>> mean([1, 2, 3]) 2.0 >>> mean([1.5, 2.5]) 2.0 >>> mean([10]) 10.0 >>> mean([]) Traceback (most recent call last): ... ValueError: mean of empty iterable >>> mean([1, 2]) 1.5
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints