Question: Use a while loop in python to complete this: In this lab, you complete a partially prewritten Python program that uses a list. The program

Use a while loop in python to complete this:
In this lab, you complete a partially prewritten Python program that uses a list. The program prompts the user to interactively enter eight batting averages, which the program stores in a list. It should then find the minimum and maximum batting averages stored in the list, as well as the average of the eight batting averages. The data file provided for this lab includes the input statement and some variable initializations. Comments are included in the file to help you write the remainder of the program.
Open the source code file named
BattingAverage.py using Notepad or the text editor of your choice.
Write the Python statements as indicated by the comments.
Save this source code file in a directory of your choice and then make that directory your working directory.
Execute the program. Enter the following batting averages: .299,.157,.242,.203,.198,.333,.270,.190. The minimum batting average should be 0.157 and the maximum batting average should be 0.333. The average should be 0.2365.
Use a while loop in python to complete this: In

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!