Skip to content

Latest commit

 

History

History
3 lines (3 loc) · 116 Bytes

File metadata and controls

3 lines (3 loc) · 116 Bytes
>>> import itertools
>>> list(itertools.permutations(range(3), 2))
[(0, 1), (0, 2), (1, 0), (1, 2), (2, 0), (2, 1)]