scores.py (435B)
1 scores = [[]] 2 for i in range(3): 3 tmp = [] 4 for j in range(5): 5 tmp.append(int(input(f"num {j}: "))) 6 scores.append(tmp) 7 8 scores.pop(0) 9 for i in scores: 10 print(*i, "avg: ",(sum(i)/5), sep=" ") 11 12 highest = scores[0][0] 13 lowest = scores[0][0] 14 for i in scores: 15 for j in i: 16 if j > highest: 17 highest = j 18 elif j < lowest: 19 lowest = j 20 print(f"highest: {highest}, lowest: {lowest}") 21