sum = 0count = 0
for i in range(1, 21):print(i)sum += icount += 1
average = sum / countprint("Среднее арифметическое: ", average)
sum = 0
count = 0
for i in range(1, 21):
print(i)
sum += i
count += 1
average = sum / count
print("Среднее арифметическое: ", average)