HA
This commit is contained in:
9
f.py
9
f.py
@@ -1,6 +1,3 @@
|
|||||||
students = [["Alice", [5, 4, 4, 5]],["Bob", [3, 4, 4, 3]],["Charlie", [5, 5, 5, 4]]]
|
a=['apple','banana','cherry']
|
||||||
|
for index,value in enumerate(a):
|
||||||
c=[]
|
print(f'{index}: {value}')
|
||||||
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))
|
|
||||||
Reference in New Issue
Block a user