# read quizzes from user and return as a list
def getQuizScores():
count = int(input("How many quiz scores? "))
scores = []
for i in range(count):
score = int(input("Enter score: "))
scores.append(score)
return scores
# find the lowest number from a list
def findLowest(numbers):
lowest = numbers[0]
for number in numbers:
if number < lowest:
lowest = number
return lowest
# add up all the numbers in a list
def getTotal(numbers):
total = 0
for number in numbers:
total = total + number
return total
# return the average with the lowest number dropped out
def averageDropOne(total, count, lowest):
# remove lowest from total
total = total - lowest
# subtract 1 from count
count = count - 1
# compute average
return total / count
# call all the functions to do the work
scores = getQuizScores()
lowest = findLowest(scores)
total = getTotal(scores)
print(averageDropOne(total, len(scores), lowest))