a=int(input("국어점수"))
b=int(input("수학점수"))
c=int(input("과학점수"))
d=int(input("체육점수"))
e=int(input("미술점수"))

sum=a+b+c+d+e
print("평균점수=", (sum)/5)

max = a
if max < b:
    max = b
if max < c:
    max = c
if max < d:
    max = d
if max < e:
    max = e
print("최대값은 "+str(max))

min = a
if min > b:
    min = b
if min > c:
    min = c
if min > d:
    min = d
if min > e:
    min = e
print("최소값은 "+str(min))

print("최대값과 최소값을 뺀 나머지 값들의 평균은 " + str(((sum-max-min)/3)))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: