Advertisement
Willcode4cash

Fixed length permutations of a sequence

Jul 26th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. from itertools import permutations
  2. perm = permutations(['A', 'B', 'C', 'D'])
  3. for i in list(perm):
  4.     print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement