Date

Due: Friday, September 16, 11:00 AM

Write a program called number_list.py that will read in 5 integer values from the user, store them in a list, and perform some basic mathematical operations. Then, prompt the user to remove one item and perform the same operations. You will need to calculate the range (the difference between the largest and smallest numbers) and the average.

An example run of the program might look like this:

Number 1: 1
Number 2: 2
Number 3: 3
Number 4: 4
Number 5: 5

You entered: [1, 2, 3, 4, 5]
The average is: 3.0
The range is: 4
Which item do you want to remove?: 5

The new list has the following values: [1, 2, 3, 4]
The average is: 2.5
The range is: 3

Another run might look like:

Number 1: 34
Number 2: -12
Number 3: 109
Number 4: -34
Number 5: 6

You entered: [34, -12, 109, -34, 6]
The average is: 20.6
The range is: 143
Which item do you want to remove?: -34

The new list has the following values: [34, -12, 109, 6]
The average is: 34.25
The range is: 121

Please match our prompts, etc, exactly. Your program should work for any 5 integers that we provide. You can leave the default precision (i.e. you do not have to format to a certain number of decimal places)

Submission: Please submit one .py file named number_list.py to the POTD submission system at https://archimedes.cs.virginia.edu/cs1110/.