RE: Here's a simple programming problem for you to solve
April 26, 2016 at 12:40 pm
(This post was last modified: April 26, 2016 at 12:44 pm by Tiberius.)
In python:
Code:
import itertools
if __name__ == '__main__':
S = list(input('Input string: '))
z = int(input('Input integer: '))
for combo in itertools.product(S, repeat=z):
print(''.join(str(c) for c in combo))