python_math_stat/practica/math/statistic/Arithmetic_mean.py
2023-10-05 17:39:56 +03:00

13 lines
336 B
Python

# формула среднего значения
def find_average(x):
return sum(x) / len(x)
# формула среднего значения для заданного набора значений
a = [int(item) for item in input().split()]
def find_average(a):
return sum(a) / len(a)
print (find_average(a))