From 3c757fcba42f69411edba9bb8513ba0ec4e4ecc0 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 19 Jan 2020 10:56:54 -0800 Subject: [PATCH] Add sum.py. --- sum.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 sum.py diff --git a/sum.py b/sum.py new file mode 100644 index 0000000..6b14f23 --- /dev/null +++ b/sum.py @@ -0,0 +1,5 @@ +from voussoirkit import pipeable + + +total = sum(float(x) for x in pipeable.go() if x.strip()) +pipeable.output(f'{total}\n')