cmd/sum.py

6 lines
123 B
Python
Raw Normal View History

2020-01-19 18:56:54 +00:00
from voussoirkit import pipeable
total = sum(float(x) for x in pipeable.go() if x.strip())
pipeable.output(f'{total}\n')