Question: In python Exercise 2 (5 points) Write a program that sums up a sequence of numbers within a range. Your program must define a main
In python

Exercise 2 (5 points) Write a program that sums up a sequence of numbers within a range. Your program must define a main function and a function named sum_between to carry out the sum. In main, you should prompt the user to input the low and high values. Function main will call the function sum_between with the two arugments, and return the sum of values within that range. For instance, if the user inputs 5 for low, and 10 for high, the function should compute the sum 5 + 6 + 7 + 8 + 9 + 10 and return the result to main. This is very similar to the program we developed in class on 10.11, except that here the sequence starts at a value that's specified by the user in the program we developed in class, the sequence always started at 1)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
