Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Задано масив a:
a = np.array([11, 22, 33, 44, 55, 66, 77, 88, 99])
Як відібрати з нього елементи більші 30 в масив b
b = a[[a > 30]]
b = a > 30
b = a[a > 30]
b = a[if a > 30]
b = []
for item in a:
if item > 30:
b.append(item)
b = np.array(b)
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!