I am trying to find a way to create an array where I would have all the variations made out of a set of characters
given A B C, I want to have all possible n-elements combination
for example
A A A B B
A B C A A
A B C A B
A B C B A
etc.
is there any function which would give me something like this?
I had a look at the print list(itertools.permutations('ABC',5)) but it seems not to work as the 5 is bigger then the number of given characters.