# -*- coding: utf-8 -*-
# average1.py

scoredf = [ ['홍길동', 80, 90, 85],
          ['이현미', 70, 50, 60],
          ['박미애', 75, 88, 70],
          ['이재인', 90, 85, 80],
          ['박종인', 95, 85, 90] ]

score1 = [scoredf[i][1:4] for i in range(5)]
sums = [0, 0, 0]

i = 0
for student in score1:
    for score in student:
        sums[i] += score
        i += 1
    i = 0

a, b, c = sums

ave = [["평균", a/5, b/5, c/5]]

scoredf = scoredf + ave

print(scoredf)
print(ave)
