def solution(s):
answer = []
answer_s = []
for i in list(s):
answer_s.append(ord(i))
answer_s = sorted(answer_s)
for i in answer_s:
answer.append(chr(i))
return "".join(answer)[::-1]
'Coding Test > Programmers_Python' 카테고리의 다른 글
[프로그래머스/python] 제일 작은 수 제거하기 (0) | 2020.07.29 |
---|---|
[프로그래머스/python] 이상한 문자 만들기 (0) | 2020.07.29 |
[프로그래머스/python] 문자열 내 마음대로 정렬하기 (0) | 2020.07.28 |
[프로그래머스/python] [1차] 비밀지도 (2018 KAKAO BLIND RECRUITMENT) (0) | 2020.07.28 |
[프로그래머스/python] 시저 암호 (0) | 2020.07.28 |