You are on page 1of 1

from itertools import product, permutations

qn = int(input('bota o numero aki '))


tamanho = range(1, qn + 1)
caracteres = int(input('bota os outros numeros aki '))
num_comb = product(tamanho, repeat=caracteres)
for subset in num_comb:
print(subset)

You might also like