Veltraxor_1 / task.md
ConorWang's picture
Upload 36 files
6536df9 verified

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": , "sum": }. Empty iterable -> {"count":0,"sum":0.0}