6 lines
283 B
Python
6 lines
283 B
Python
students = [["Alice", [5, 4, 4, 5]],["Bob", [3, 4, 4, 3]],["Charlie", [5, 5, 5, 4]]]
|
|
|
|
c=[]
|
|
for student in range(len(students)):
|
|
c.append(sum(students[student][1])/len(students[student][1]))
|
|
print('Максимальный балл: ',students[c.index(max(c))][0],'',max(c)) |