
num = int(input("단어의 갯수 : )"
words = [input() for _ in range(num)]
words = list(set(words))
words.sort(key=lambda x: (len(x), x)) #리스트를 크기, 사전 순으로 정렬
for idx in words:
print(idx)
lambda x: (조건1, 조건2, 조건3)
# 조건 1 동일하면 -> 조건 2 오름차순 ...
문제를 처음 풀었을 때는 정렬하고 반복제거하고 하면서도 이게 맞나라고 생각했는데
파이썬은 한 번에 하는 거라 했다
아직 파이썬 기능에 미숙한 거 같다