And the average score is calculated
Xiao Ming just finished final exams, he will save his score for each section to the list of scores, and now, please help him do some calculations:
Save score calculation, the calculation result to the variable total_score the
average is calculated, and the calculated result is stored in the variable avg_score
# 小明的期末考试成绩分数如下:
scores = [95, 69, 98, 74, 64, 72, 53, 92, 83]
# 请计算小明的总分、平均分,并保存至变量 total_score, avg_score 中
total_score =sum(scores)
avg_score = sum(scores)/len(scores)