https://github.com/estebanpinal/WSQ/blob/master/WSQ07

Ranges, bounds, formulas! Mathematically, there’s a really cool operation we could use to get the integer sum of [n_1, n_2], so when I read that that wasn’t what we had to do (at least not exactly) it felt more interesting. Here’s the GitHub code link: WSQ 7.

For calculating the sum I used a while-loop. This one is nested in an if-else statement, so that the program can tell the user when we confused the lower with the upper bound. This is my code: print(“I will calculate the sum of numbers in a range you select.”) numLow = numLow1 = int(input(“What is […]

In this WSQ we were suppose to write a code to make a sum of the integer numbers in a given range, this using functions. The hard thing about this was that we had to put together all the topics we had covered before like functions, basic operations, use of else and if and even … Continue reading #WSQ07 →

In this WSQ we were suppose to write a code to make a sum of the integer numbers in a given range, this using functions. The hard thing about this was that we had to put together all the topics we had covered before like functions, basic operations, use of else and if and even … Continue reading #WSQ07 →

In this case I need to make a program where the user gives two numbers and the computer gives the sum between the range of that numbers. In this occasion Ken was very helpful because he write in the blackboard… Continue Reading →

In this case I need to make a program where the user gives two numbers and the computer gives the sum between the range of that numbers. In this occasion Ken was very helpful because he write in the blackboard… Continue Reading →

This task was about making a programm that asks the user for two integers. The user will read that the first number she/he types will be the begining of a serie of numbers and the second will be the end… Continue Reading →

This was challenging but surprisingly fun. I had some problems that were solved understanding what I was doing so the book helped me a lot.

This is my code:

This is Sumofnumbers.py in action: