Answer:
try this
Step-by-step explanation:
#Python program for calculating avg
#Given data
m1 = [99.5, 78.25, 76, 58.5, 100, 87.5, 91, 68, 100]
f1 = [55, 62, 100, 98.75, 80, 85.25]
#combine scores
all_scores = m1 + f1
#number of m1 and f1
num_midterm = len(m1)
num_final = len(f1)
#find avg of scores
avg_midterm = sum(m1) / num_midterm
avg_final = sum(f1) / num_final
#print the avg
print("Average of the m1 score:",round(avg_midterm,2))
print("Average of the f1 score:",round(avg_final,2))