I\'m trying to display all possible permutations of a list of numbers, for example if I have 334 I want to get:
3 3 4 3 4 3 4 3 3
I need to
>>> lst = [3, 3, 4] >>> import itertools >>> set(itertools.permutations(lst)) {(3, 4, 3), (3, 3, 4), (4, 3, 3)}