728x90
def solution(array):
return sorted(array)[len(array) // 2]
728x90
'CodingTest > [프로그래머스 LV.0]' 카테고리의 다른 글
프로그래머스 LV.0 - 배열의 유사도[Python] (0) | 2023.01.21 |
---|---|
프로그래머스 LV.0 - 옷가게 할인 받기[Python] (0) | 2023.01.21 |
프로그래머스 LV.0 - 두 수의 나눗셈[Python] (0) | 2023.01.20 |
프로그래머스 LV.0 - 두 수의 합[Python] (0) | 2023.01.20 |
프로그래머스 LV.0 - 나이 출력[Python] (0) | 2023.01.20 |