[Python] 프로그래머스 - Level1 - 문자열 내 마음대로 정렬하기

강주형·2022년 8월 12일
0

https://school.programmers.co.kr/learn/courses/30/lessons/12915

연습문제

def solution(strings, n):
    n_string = [s[n] for s in strings]
    return [i[1] for i in sorted(zip(n_string, strings))]

타인 코드 중에는 와닿는 게 없다

profile
Statistics & Data Science

0개의 댓글