본문 바로가기
파이썬/프로그래머스

문자열 내림차순으로 배치하기

by L_SU 2022. 7. 1.
def solution(s):
    a=list(s)
    a.sort(reverse=True)
    s="".join(a)
    return s