Предмет: Информатика, автор: 66666666696666666666

Існує список: [9, 10, 8, 4, 6, 10, 8, 10, 8, 10, 8, 10, 8, 8, 8, 3, 9, 2, 5, 5, 6, 5, 3, 10, 3, 1, 9, 7, 6, 8, 2, 10, 2, 4, 7, 3, 3, 3, 2, 4, 6, 10, 1, 3, 10, 5, 8, 6, 6, 10, 3, 9, 4, 5, 10, 10, 8, 6, 0, 9, 9, 8, 10, 4, 9, 10, 9, 10, 2, 1, 3, 10, 0, 4, 3, 1, 7, 2, 6, 8, 7, 3, 7, 2, 8, 7, 0, 10, 9, 6, 6, 0, 2, 8, 5, 5, 5, 1, 9, 8, 9, 10, 8, 4, 6, 10, 8, 10, 8, 10, 8, 10, 8, 8, 8, 3, 9, 2, 5, 5, 6, 5, 3, 10, 3, 1, 9, 7, 6, 8, 2, 10, 2, 4, 7, 3, 3, 3, 2, 4, 6, 10, 1, 3, 10, 5, 8, 6, 6, 10, 3, 9, 4, 5, 10, 10, 8, 6, 0, 9, 9, 8, 10, 4, 9, 10, 9, 10, 2, 1, 3, 10, 0, 4, 3, 1, 7, 2, 6, 8, 7, 3, 7, 2, 8, 7, 0, 10, 9, 6, 6, 0, 2, 8, 5, 5, 5, 1, 9, 8, 9, 10, 8, 4, 6, 10, 8, 10, 8, 10, 8, 10, 8, 8, 8, 3, 9, 2, 5, 5, 6, 5, 3, 10, 3, 1, 9, 7, 6, 8, 2, 10, 2, 4, 7, 3, 3, 3, 2, 4, 6, 10, 1, 3, 10, 5, 8, 6, 6, 10, 3, 9, 4, 5, 10, 10, 8, 6, 0, 9, 9, 8, 10, 4, 9, 10, 9, 10, 2, 1, 3, 10, 0, 4, 3, 1, 7, 2, 6, 8, 7, 3, 7, 2, 8, 7, 0, 10, 9, 6, 6, 0, 2, 8, 5, 5, 5, 1, 9, 8] Напишіть код, за допомогою якого порахуєте середнє арифмтеичне цього списку.
напишите код на пайтоні

Ответы

Автор ответа: teacher1011
0

my_list = [9, 10, 8, 4, 6, 10, 8, 10, 8, 10, 8, 10, 8, 8, 8, 3, 9, 2, 5, 5, 6, 5, 3, 10, 3, 1, 9, 7, 6, 8, 2, 10, 2, 4, 7, 3, 3, 3, 2, 4, 6, 10, 1, 3, 10, 5, 8, 6, 6, 10, 3, 9, 4, 5, 10, 10, 8, 6, 0, 9, 9, 8, 10, 4, 9, 10, 9, 10, 2, 1, 3, 10, 0, 4, 3, 1, 7, 2, 6, 8, 7, 3, 7, 2, 8, 7, 0, 10, 9, 6, 6, 0, 2, 8, 5, 5, 5, 1, 9, 8, 9, 10, 8, 4, 6, 10, 8, 10, 8, 10, 8, 10, 8, 8, 8, 3, 9, 2, 5, 5, 6, 5, 3, 10, 3, 1, 9, 7, 6, 8, 2, 10, 2, 4, 7, 3, 3, 3, 2, 4, 6, 10, 1, 3, 10, 5, 8, 6, 6, 10, 3, 9, 4, 5, 10, 10, 8, 6, 0, 9, 9, 8, 10, 4, 9, 10, 9, 10, 2, 1, 3, 10, 0, 4, 3, 1, 7, 2, 6, 8, 7, 3, 7, 2, 8, 7, 0, 10, 9, 6, 6, 0, 2, 8, 5, 5, 5, 1, 9, 8, 9, 10, 8, 4, 6, 10, 8, 10, 8, 10, 8, 10, 8, 8, 8, 3, 9, 2, 5, 5, 6, 5, 3, 10, 3, 1, 9, 7, 6, 8, 2, 10, 2, 4, 7, 3, 3, 3, 2, 4, 6, 10, 1, 3, 10, 5, 8, 6, 6, 10, 3, 9, 4, 5, 10, 10, 8, 6, 0, 9, 9, 8, 10, 4, 9, 10, 9, 10, 2, 1, 3, 10, 0, 4, 3, 1, 7, 2, 6, 8, 7, 3, 7, 2, 8, 7, 0, 10, 9, 6, 6, 0, 2, 8, 5, 5, 5, 1, 9, 8]

n = len(my_list)

arithmetic_mean = sum(my_list) / n

print(arithmetic_mean)

Автор ответа: p15
1

Ответ:

a=[9, 10, 8, 4, 6, 10, 8, 10, 8, 10, 8, 10, 8, 8, 8, 3, 9, 2, 5, 5, 6, 5, 3, 10, 3, 1, 9, 7, 6, 8, 2, 10, 2, 4, 7, 3, 3, 3, 2, 4, 6, 10, 1, 3, 10, 5, 8, 6, 6, 10, 3, 9, 4, 5, 10, 10, 8, 6, 0, 9, 9, 8, 10, 4, 9, 10, 9, 10, 2, 1, 3, 10, 0, 4, 3, 1, 7, 2, 6, 8, 7, 3, 7, 2, 8, 7, 0, 10, 9, 6, 6, 0, 2, 8, 5, 5, 5, 1, 9, 8, 9, 10, 8, 4, 6, 10, 8, 10, 8, 10, 8, 10, 8, 8, 8, 3, 9, 2, 5, 5, 6, 5, 3, 10, 3, 1, 9, 7, 6, 8, 2, 10, 2, 4, 7, 3, 3, 3, 2, 4, 6, 10, 1, 3, 10, 5, 8, 6, 6, 10, 3, 9, 4, 5, 10, 10, 8, 6, 0, 9, 9, 8, 10, 4, 9, 10, 9, 10, 2, 1, 3, 10, 0, 4, 3, 1, 7, 2, 6, 8, 7, 3, 7, 2, 8, 7, 0, 10, 9, 6, 6, 0, 2, 8, 5, 5, 5, 1, 9, 8, 9, 10, 8, 4, 6, 10, 8, 10, 8, 10, 8, 10, 8, 8, 8, 3, 9, 2, 5, 5, 6, 5, 3, 10, 3, 1, 9, 7, 6, 8, 2, 10, 2, 4, 7, 3, 3, 3, 2, 4, 6, 10, 1, 3, 10, 5, 8, 6, 6, 10, 3, 9, 4, 5, 10, 10, 8, 6, 0, 9, 9, 8, 10, 4, 9, 10, 9, 10, 2, 1, 3, 10, 0, 4, 3, 1, 7, 2, 6, 8, 7, 3, 7, 2, 8, 7, 0, 10, 9, 6, 6, 0, 2, 8, 5, 5, 5, 1, 9, 8]

print(sum(a)/len(a))

Объяснение:


iramazurk: Найдите все пары натуральных чисел, для которых произведение на 250 больше полусуммы..
https://znanija.com/task/53183824?utm_source=android&utm_medium=share&utm_campaign=question
iramazurk: Квaдрат подiлили нa дeкілька прямокутникiв тa мeнших квадратів. Знaйдіть вiдношення периметрів П усіх прямoкутникiв до п...
https://znanija.com/task/52736752?utm_source=android&utm_medium=share&utm_campaign=question
iramazurk: Чи існують такі значення x і y, при яких дорівнює нулю значення многочлена:

1) x^2 + 4y^2 + 2x - 4y + 2;
2) 9x^2 + y^2 ...
https://znanija.com/task/52092944?utm_source=android&utm_medium=share&utm_campaign=question
p15: https://znanija.com/task/53183824
p15: https://znanija.com/task/52092944
p15: https://znanija.com/task/52736752
Похожие вопросы
Предмет: Математика, автор: popovaleona3
Предмет: Математика, автор: aik199