파이썬 라이브러리 중 하나인 itertools에 대해 알아보겠습니다 itertools 라이브러리를 이용하면 조합과 순열을 쉽게 구할 수 있습니다 itertools itertools : 효율적인 루핑을 위한 이터레이터를 만드는 함수 combinations() combinations_with_replacement() product() permutations() 에 대해 알아봅시다 ※combinations(iterable, r) : iterable에서 원소 개수가 r개의 조합 뽑기 *결과 파이썬 공식문서에 다르면 입력 iterable 순서에 따라 사전식 순서로 방출됩니다. 따라서 , 입력 iterable이 정렬 되어있다면, 조합 튜플이 정렬된 순서로 생성됩니다 ※combinations_with_replacem..