(April 27, 2016 at 2:17 am)pool the great Wrote:(April 26, 2016 at 12:40 pm)Tiberius Wrote: 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))
I can't C your response,Tibby.
Of course not, in Python it's basically
"
begin program
dothethingIwant();
end program
"
The fool hath said in his heart, There is a God. They are corrupt, they have done abominable works, there is none that doeth good.
Psalm 14, KJV revised edition