I have a list of 7 characters. How would I programmatically create every permutation of the the letters shuffled (I know that the number of lists would be 7 factorial).
I know how to shuffle a list, but I assume that wouldn’t be efficient to just keep shuffling the list, and then checking if i’ve already created that permutation and keep going til I hit the number of possibilities.
Use
itertools.permutations: