😉 조합 from itertools import combinations # 조합(순서x)nums=[1,2,3,4]arr = list(combinations(nums, 3)) #출력: [(1, 2, 3), (1, 2, 4), (1, 3, 4), (2, 3, 4)] 😉 순열 from itertools import permutations # 순열(순서 o)nums=[1,2,3,4]arr = list(permutations(nums, 3)) #출력: [(1, 2, 3), (1, 2, 4), (1, 3, 2), (1, 3, 4), (1, 4, 2), (1, 4, 3), # (2, 1, 3), (2, 1, 4), (2, 3, 1), (2, 3, 4), (2, 4, 1), (2, 4, 3), # ..