Python/Numpy
numpy 연산
sailorCat
2021. 12. 20. 23:11
728x90
import numpy as np
def solution(info):
answer = []
size = np.shape(info)
for height in range(size[1]):
if info[0][height]>195.0 or info[0][height]<150.0:
answer.append(height)
for weight in range(size[1]):
if info[1][weight]>=140.0:
answer.append(weight)
answer = list(set(answer))
return answer
728x90