프로그래머스. 문자열 내 마음대로 정렬하기 파이썬 풀이

minan·2021년 6월 24일
0

프로그래머스

목록 보기
46/92

프로그래머스. 연습문제. Level 1. 문자열 내 마음대로 정렬하기 파이썬 풀이

문제링크 https://programmers.co.kr/learn/courses/30/lessons/12915

처음 성공해보는 내 한줄컷 코드^%^%^%^%

def solution(strings, n):
    
    return sorted(strings, key=lambda x: (x[n], x))
profile
https://github.com/minhaaan

0개의 댓글