From c2628b7ac1e5e7bb14338bbc58b3628babc8e643 Mon Sep 17 00:00:00 2001 From: davidb Date: Sun, 7 Oct 2018 21:53:45 -0700 Subject: [PATCH] Solution for #1 --- beginner/sum-of-all-numbers_david.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 beginner/sum-of-all-numbers_david.py diff --git a/beginner/sum-of-all-numbers_david.py b/beginner/sum-of-all-numbers_david.py new file mode 100644 index 0000000..f9b4c99 --- /dev/null +++ b/beginner/sum-of-all-numbers_david.py @@ -0,0 +1,2 @@ +def sum_all(arr): + return sum(arr)+sum(range(min(arr)+1, max(arr))) \ No newline at end of file