cmd/sum.py
2020-01-19 10:56:54 -08:00

5 lines
123 B
Python

from voussoirkit import pipeable
total = sum(float(x) for x in pipeable.go() if x.strip())
pipeable.output(f'{total}\n')