Answer:
exams = []
quantity = int(input('How many exams? '))
for i in range(quantity):
exams.append(float(input('Enter a score: ')))
print('Average score: ',sum(exams)/len(exams))
print('High score: ', max(exams))
Explanation:
Step 1 define variables
exams = []
Step 2 get the quantity of scores(user input)
quantity = int(input('How many exams? '))
Step 3 loop over the quantity of exams and input the score and save it in an array
for i in range(quantity):
exams.append(float(input('Enter a score: ')))
Step 4 show the results
print('Average score: ',sum(exams)/len(exams))
print('High score: ', max(exams))
Functions used:
sum: get the summarize of the array
len: get the quantity of elements in an array
max: get the max value in an array