bzaghalarov

Untitled

Dec 2nd, 2022
1,050
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.91 KB | None | 0 0
  1. import itertools
  2.  
  3. arr =  [(1,2),(2,3),(5,2),(6,3)]
  4. k = itertools.permutations(arr)
  5. for el in k:
  6.   print(el)
  7.  
  8. ((1, 2), (2, 3), (5, 2), (6, 3))
  9. ((1, 2), (2, 3), (6, 3), (5, 2))
  10. ((1, 2), (5, 2), (2, 3), (6, 3))
  11. ((1, 2), (5, 2), (6, 3), (2, 3))
  12. ((1, 2), (6, 3), (2, 3), (5, 2))
  13. ((1, 2), (6, 3), (5, 2), (2, 3))
  14. ((2, 3), (1, 2), (5, 2), (6, 3))
  15. ((2, 3), (1, 2), (6, 3), (5, 2))
  16. ((2, 3), (5, 2), (1, 2), (6, 3))
  17. ((2, 3), (5, 2), (6, 3), (1, 2))
  18. ((2, 3), (6, 3), (1, 2), (5, 2))
  19. ((2, 3), (6, 3), (5, 2), (1, 2))
  20. ((5, 2), (1, 2), (2, 3), (6, 3))
  21. ((5, 2), (1, 2), (6, 3), (2, 3))
  22. ((5, 2), (2, 3), (1, 2), (6, 3))
  23. ((5, 2), (2, 3), (6, 3), (1, 2))
  24. ((5, 2), (6, 3), (1, 2), (2, 3))
  25. ((5, 2), (6, 3), (2, 3), (1, 2))
  26. ((6, 3), (1, 2), (2, 3), (5, 2))
  27. ((6, 3), (1, 2), (5, 2), (2, 3))
  28. ((6, 3), (2, 3), (1, 2), (5, 2))
  29. ((6, 3), (2, 3), (5, 2), (1, 2))
  30. ((6, 3), (5, 2), (1, 2), (2, 3))
  31. ((6, 3), (5, 2), (2, 3), (1, 2))
Advertisement
Add Comment
Please, Sign In to add comment