sailorCat
카테고리
작성일
2021. 12. 20. 23:11
작성자
sailorCat
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

'Python > Numpy' 카테고리의 다른 글

이미지 변환 배열연산  (0) 2021.12.20
행렬 곱 연산  (0) 2021.12.20
배열의 내적연산  (0) 2021.12.20
array 슬라이싱 연습  (0) 2021.12.20
Numpy 리스트를 array로 변환 ndarray  (0) 2021.12.20