File size: 298 Bytes
6536df9 | 1 2 3 4 5 | Implement a Python function `solve(data)` that:
- Accepts a non-string iterable of numbers (int/float). Otherwise raise ValueError.
- If any element is not numeric or is bool/None, raise ValueError.
- Return a dict with {"count": <len>, "sum": <float sum>}. Empty iterable -> {"count":0,"sum":0.0}
|