Question: Create a Python program that uses a while loop and prompts the user for a series of inputs. You should use a sentinel value to

Create a Python program that uses a while loop and prompts the user for a series of inputs. You should use a sentinel value to signal when the loop should terminate. Calculate and display the sum of the user inputs.

Some examples that you might use are the following:

Total number of miles traveled on a road trip.

Total cost of groceries in a month.

Total number of accidents in a year.

You must choose something different from any of the above, however.

Include comments in your code program that describe what the program does. Submit your code as an attachment (.py file) and post a screenshot of executing your program on at least one test case.

Be sure to choose a program different from any of the programs already posted by your classmates.

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 Databases Questions!