counts = list()
count5 = 0
count4 = 0
count3 = 0
count6 = 0
count = int(input('Введи оценку (0 - остановить ввод):'))
while count != 0:
counts.append(count)
count6 += 1
if count == 5:
count5 += 1
elif count == 4:
count4 += 1
elif count == 3:
count3 += 1
count = int(input('Введи оценку (0 - остановить ввод):'))
print('Список оценок:', counts)
print('Успеваемость:', (count5 + count4 + count3) / count6 * 100)