Skip to content

Commit

Permalink
Merge pull request #34 from sharan-nyn/1-solution
Browse files Browse the repository at this point in the history
solution to #1 - sum-of-all-numbers
  • Loading branch information
the-vampiire authored Oct 5, 2018
2 parents 077c023 + 3a30176 commit d01fe0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions beginner/sum-of-all-numbers_sharan-nyn.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def sum_all(numbers):
return sum(range(min(numbers), max(numbers)+1))

print sum_all([1,4])
print sum_all([100,1])

0 comments on commit d01fe0b

Please sign in to comment.