From 569de9a05810ce5ea1fbdd4eeeb0cb8f5c0c3ee0 Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Thu, 5 Mar 2026 20:58:01 +0500 Subject: [PATCH] HA --- f.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/f.py b/f.py index c51fead..e597fd4 100644 --- a/f.py +++ b/f.py @@ -1,6 +1,3 @@ -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)) \ No newline at end of file +a=['apple','banana','cherry'] +for index,value in enumerate(a): + print(f'{index}: {value}') \ No newline at end of file