Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import itertools
- arr = [(1,2),(2,3),(5,2),(6,3)]
- k = itertools.permutations(arr)
- for el in k:
- print(el)
- ((1, 2), (2, 3), (5, 2), (6, 3))
- ((1, 2), (2, 3), (6, 3), (5, 2))
- ((1, 2), (5, 2), (2, 3), (6, 3))
- ((1, 2), (5, 2), (6, 3), (2, 3))
- ((1, 2), (6, 3), (2, 3), (5, 2))
- ((1, 2), (6, 3), (5, 2), (2, 3))
- ((2, 3), (1, 2), (5, 2), (6, 3))
- ((2, 3), (1, 2), (6, 3), (5, 2))
- ((2, 3), (5, 2), (1, 2), (6, 3))
- ((2, 3), (5, 2), (6, 3), (1, 2))
- ((2, 3), (6, 3), (1, 2), (5, 2))
- ((2, 3), (6, 3), (5, 2), (1, 2))
- ((5, 2), (1, 2), (2, 3), (6, 3))
- ((5, 2), (1, 2), (6, 3), (2, 3))
- ((5, 2), (2, 3), (1, 2), (6, 3))
- ((5, 2), (2, 3), (6, 3), (1, 2))
- ((5, 2), (6, 3), (1, 2), (2, 3))
- ((5, 2), (6, 3), (2, 3), (1, 2))
- ((6, 3), (1, 2), (2, 3), (5, 2))
- ((6, 3), (1, 2), (5, 2), (2, 3))
- ((6, 3), (2, 3), (1, 2), (5, 2))
- ((6, 3), (2, 3), (5, 2), (1, 2))
- ((6, 3), (5, 2), (1, 2), (2, 3))
- ((6, 3), (5, 2), (2, 3), (1, 2))
Advertisement
Add Comment
Please, Sign In to add comment