Question: Write a Python program that uses a function which accepts 2 integer parameters.The function is to determine the sum of the numbers between the two

Write a Python program that uses a function which accepts 2 integer parameters.The function is to determine the sum of the numbers between the two parameter values and return the sum. The sum is not to include the 2 parameter numbers. For instance, if the parameter values are 3 and 10, the sum is 4+5+6+7+8+9 which equals 39. Therefore, the number 39 would be returned to the main and outputted.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!