from statistics import mean
lst = []
x = int(input())
while x != 0:
lst.append(x)
print('Сумма -> {} Среднее -> {}'.format(sum(lst), mean(lst)))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
from statistics import mean
lst = []
x = int(input())
while x != 0:
lst.append(x)
x = int(input())
print('Сумма -> {} Среднее -> {}'.format(sum(lst), mean(lst)))