2025年5月2日 星期五

dictionary sample

 student_score = { "Chaoyen":[80, 87, 67],

                  "Joanne":[76, 80, 95],

                  "Manchster":[85, 70, 90],

}


math_sum = 0   


for k,v in student_score.items():

  # print(k,v)

  math_sum+=v[2]

print(math_sum/len(student_score))

沒有留言:

張貼留言