scores_file = open("studentscores.txt", "r")
for line in scores_file:
student_info = line.split()
student_name = student_info[0]
total_score = 0.0
score_count = 2
for i in range(0, score_count):
total_score += float(student_info[i + 1])
average = total_score/score_count
print(student_name, average)
Linda 98 97 96 95
John 84.5 91.5 100 87