https://school.programmers.co.kr/learn/courses/30/lessons/120896
def solution(s):
answer = ''
for i in s:
if s.count(i)==1:
answer += i
return ''.join(sorted(answer))
s = "adfe"
s1 = s.sort() # wrong
s2 = sorted(s) # ['a','d','e','f']
s3 = ''.join(sorted(s)) # "adef"
이것을 참고하자
def solution(s):
answer = "".join(sorted([ ch for ch in s if s.count(ch) == 1]))
return answer