Python_itertools모듈의 combinations함수 파이썬의 itertools 모듈은 유용한 반복자 기능을 제공하는 모듈이다. itertools 모듈의 'combinations'함수는 주어진 시퀀스에서 지정된 길이의 가능한 모든 조합을 생성한다. itertools.combinations(iterable,r) oaho.tistory.com math.comb()함수는 조합(combination) 을 계산하는 함수다. 조합은 서로 다른 n개의 원소에서 r개를 선택하는 경우의 수를 의미한다. math.comb(n, r) : n개의 원소 중에서 r개를 선택하는 경우의 수, 즉 nCr = n!/(r!(n-r)!) itertools.combinations() 함수도 조합을 구할 때 사용하지만 , 파라미터와..