Per the program requirements in the “comment section,” I wantedto know to have someone review my cod

Per the program requirements in the “comment section,” I wantedto know to have someone review my code and see if there are anysuggestions or comments. For instance, what if the high score, i.e.10.0, is listed more than once. Do I need to somehow add this to mycode? ## At certain Olympic events, there are 5 judges. ## To determine an athlete’s final score for the event,
## the highest and lowest judges’ scores are discarded
## and then the average of the rest of the scores is calculated.Assume that the
## array ‘scores’ contains the judges’ scores. ## Write a function that accepts as an arguement a list
## of scores and returns the athlete’s final score.
##
## (Hint: Add up all the scores in the array. Find the highest andlowest scores
## and subtract them out. Divide the sum by len(scores) – 2 andreturn the average.) ## ListScores = [5, 5, 5, 5, 5]
## ListScores = [0, 1, 2, 3, 4] name = input(“Enter athlete’s last name: “)
ListScores = []
size = len(ListScores)
total = 0.0 def main():
total = 0
  
for score in range(1,6):
while True:
score = float(input(“Enter athlete’s score between 0 and 10:”))
if (score >= 0) and (score
break
else:
print(“Invalid Score”)
ListScores.append(score) for score in range(len(ListScores)):
total += ListScores[score]
  
print(“Total Score:”, ListScores,”=”,total)
print(“Minimum Score:”,min(ListScores), “MaximumScore:”,max(ListScores)) def finalScore(finalScore):
total = 0
minScore = ListScores[0]
maxScore = ListScores[0] for score in ListScores:
if (score
minScore = score
  
for score in ListScores:
if (score > maxScore):
MaxScore = score score = sum(ListScores) – (minScore + maxScore)
  
return (score/3) main()
fs = finalScore(finalScore)
print(name,”tFinal Score: “,format(fs, ‘.2f’)) . . .