Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Tags
more
Archives
Today
Total
관리 메뉴

PythonHolic

[python] 7명의 감독관의 시험점수 평균 본문

파이썬 과제 도와주기 일지

[python] 7명의 감독관의 시험점수 평균

devpy 2020. 6. 25. 18:26

print('심판 점수 입력(시험의 점수는 0~10 사이의 점수를 입력하세요')
score = []
for i in range(7):
    score.append(int(input("점수 입력(0~10): ")))
score.remove(max(score))
score.remove(min(score))
print('%.2f'%(sum(score)/5))
Comments