Willcode4cash icon

Fixed length permutations of a sequence

Willcode4cash | PRO | 07/27/17 03:12:56 AM UTC | 0 ⭐ | 282 👁️ | Never ⏰ | []
Python |

110 B

|

None

|

0 👍

/

0 👎

from itertools import permutations
perm = permutations(['A', 'B', 'C', 'D'])
for i in list(perm):
    print(i)

Comments