test-commit
Этот коммит содержится в:
13
TEMA4/test.py
Обычный файл
13
TEMA4/test.py
Обычный файл
@@ -0,0 +1,13 @@
|
||||
import random
|
||||
sps = []
|
||||
for i in range(20):
|
||||
a = random.gauss(3400, 121)
|
||||
sps.append(a)
|
||||
print('Список: ', sps)
|
||||
sr = sum(sps)/20
|
||||
print('Среднее значение: ', sr)
|
||||
i=0
|
||||
for el in sps:
|
||||
if el>sr:
|
||||
i+=1
|
||||
print('Кол-во элементов больше среднего: ', i)
|
||||
Ссылка в новой задаче
Block a user