중복순열

letsbebrave·2023년 2월 17일
0

codingtest

목록 보기
141/146

product(반복가능한 객체, repeat = 수)

from itertools import product

for i in product([1, 2, 3], repeat = 2):
	print(i, end = " ")
  
for i in product([1, 2, 3], repeat = 3):
	print(i, end = " ")

관련된 문제

https://school.programmers.co.kr/learn/courses/30/lessons/84512

profile
그게, 할 수 있다고 믿어야 해

0개의 댓글