Ответ:
1)import math
x = input()
print(math.modf(x)[0])
2)
A = [22, 55, 445, 12, 2]
def F(x):
if x < 22:
return x
import numpy as np
numA = np.array(A)
B = list(map(F, numA))
mn = 1
for elem in B:
if elem != None:
mn *= elem
print(mn)
3)
if x >= 10 and x <= 50:
mn = 0
mn += elem
4)
for i in A:
mn+=i
print(mn/ len(A))
A - массив введённых чисел
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
1)import math
x = input()
print(math.modf(x)[0])
2)
A = [22, 55, 445, 12, 2]
def F(x):
if x < 22:
return x
import numpy as np
numA = np.array(A)
B = list(map(F, numA))
mn = 1
for elem in B:
if elem != None:
mn *= elem
print(mn)
3)
A = [22, 55, 445, 12, 2]
def F(x):
if x >= 10 and x <= 50:
return x
import numpy as np
numA = np.array(A)
B = list(map(F, numA))
mn = 0
for elem in B:
if elem != None:
mn += elem
print(mn)
4)
A = [22, 55, 445, 12, 2]
mn = 1
for i in A:
mn+=i
print(mn/ len(A))
A - массив введённых чисел