[Programmers] 튜플
Python
def solution(s):
answer = []
temp = sorted([s.split(',') for s in s[2:-2].split('},{')], key = len)
for i in temp:
for j in i:
if int(j) not in answer:
answer.append(int(j))
return answer
댓글남기기