Skip to content

Commit

Permalink
Merge pull request #44 from vinicius121/1-solution
Browse files Browse the repository at this point in the history
Add sum-of-all-numbers_vinicius121
  • Loading branch information
the-vampiire authored Oct 5, 2018
2 parents b001b5c + d6912f1 commit 1286456
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions beginner/sum-of-all-numbers_vinicius121.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#Sum of numbers

a = [1, 4]
b = [5, 1]

def sum_all(lst):
return sum(range(min(lst), max(lst) + 1))

print(sum_all(a))

0 comments on commit 1286456

Please sign in to comment.