JoelSjogren

Untitled

Dec 4th, 2020
603
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. box% python
  2. Python 3.8.6 (default, Sep 30 2020, 04:00:38)
  3. [GCC 10.2.0] on linux
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> import itertools
  6. >>> list(itertools.permutations((1,2,3,4,5),2))
  7. [(1, 2), (1, 3), (1, 4), (1, 5), (2, 1), (2, 3), (2, 4), (2, 5), (3, 1), (3, 2), (3, 4), (3, 5), (4, 1), (4, 2), (4, 3), (4, 5), (5, 1), (5, 2), (5, 3), (5, 4)]
  8. >>>
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment