summaryrefslogtreecommitdiff
path: root/comp/work/9/scores.py
blob: 8abad3b76dd94d8f6bf3e092a0d2a71b1c7c40bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
scores = [[]]
for i in range(3):
    tmp = []
    for j in range(5):
        tmp.append(int(input(f"num {j}: ")))
    scores.append(tmp)

scores.pop(0)
for i in scores:
    print(*i, "avg: ",(sum(i)/5), sep=" ")

highest = scores[0][0]
lowest = scores[0][0]
for i in scores:
    for j in i:
        if j > highest:
            highest = j
        elif j < lowest:
            lowest = j
print(f"highest: {highest}, lowest: {lowest}")