Question: In this program, you are required to apply the Python List feature. Using the List feature, write a program that allows a user to enter

In this program, you are required to apply the Python List feature. Using the List feature, write a program that allows a user to enter any number and store each number into a List. The user must enter -9999 to quit entering more numbers. Number -9999 should not be stored in the List. Display an error message if the user quits without entering any numbers. The program ends by displaying each entered value and its distance from the average.
For example, if three numbers were entered; 10,3,8, and -9999 then the average is 7.
So, the distance between the first number 10 and the average 7 is 3.
The distance between the second number 3 and the average 7 is -4.
The distance between the second number 8 and the average 7 is 1.

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!