In this chapter we are going to hammer down the concepts we've learned by running through a bunch of practice problems without introducing any new concepts.
Complete the number_sum function. It should add up all the numbers from 1 to n and return the result. For example:
number_sum(5) -> 1+2+3+4+5 -> 15number_sum(3) -> 1+2+3 -> 6Remember that a range is not inclusive of the last number.