반응형
https://school.programmers.co.kr/learn/courses/30/lessons/120882?language=python3
문제풀이
def solution(scores):
if scores != None:
mean_score = []
answer = []
for socre in scores:
mean = (socre[0] + socre[1]) / len(socre)
mean_score.append(mean)
sort_mean_scores = sorted(mean_score,reverse=True)
for i in mean_score:
answer.append(sort_mean_scores.index(i) +1)
return answer
'파이썬 이것저것 > 코테준비' 카테고리의 다른 글
[Python] 프로그래머스 중복된 숫자 갯수 (0) | 2022.12.31 |
---|---|
[Python] 프로그래머스 로그인 성공? (0) | 2022.12.29 |
[Python] 프로그래머스 피자 나눠 먹기(1) (0) | 2022.12.27 |
[Python] 프로그래머스 짝수는 싫어요 (0) | 2022.12.27 |
[Python] 프로그래머스 최빈값 구하기 (0) | 2022.12.25 |