Існує список: [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] Напишіть код, за допомогою якого порахуєте середнє арифмтеичне цього списку.
напишите код на пайтоні
Ответы
my_list = [9, 10, 8, 4, 6, 10, 8, 10, 8, 10, 8, 10, 8, 8, 8, 3, 9, 2, 5, 5, 6, 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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))
Объяснение:
https://znanija.com/task/52736752?utm_source=android&utm_medium=share&utm_campaign=question
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
https://znanija.com/task/53183824?utm_source=android&utm_medium=share&utm_campaign=question