Question: # Initialize an integer for list size here. # Initialize list here. # Write a loop to get batting averages from user and add to

# Initialize an integer for list size here.
# Initialize list here.
# Write a loop to get batting averages from user and add to list.
# String version of batting average input by user.
averageString = input("Enter a batting average: ")
# Use this variable to store the batting average input by user.
battingAverage = float(averageString)
# add value to list.
# Use these variables to store the minimim and maximum batting averages.
# Assign the first element in the list to be the minimum and the maximum.
min = averages[0]
max = averages[0]
# Start out your total initialized to 0.
total =0
# Write a loop here to access list values starting with averages[1]
# Within the loop test for minimum and maximum batting averages.
# Also accumulate a total of all batting averages.
# Calculate the average of the 8 averages.
# Print the averages stored in the averages list.
# Print the maximum batting average, minimum batting average, and average batting average.

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!