I want to get permutations for two numbers upto n repetitions in python code.
Example:
a = 10, b = 100 and given n = 3
Now I want output like:
(10, 10, 10),
(10, 10, 100),
(10, 100, 10),
(10, 100, 100),
(100, 10, 10),
(100, 10, 100),
(100, 100, 10),
(100, 100, 100)
I tried itertools permutations but wont helpful. Anyone please give me a solution.