Skip to content

Commit

Permalink
Add sum-of-all-numbers_vinicius121
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinicius Silva committed Oct 5, 2018
1 parent f7b44a9 commit d6912f1
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 d6912f1

Please sign in to comment.