daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Dec 18th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # itertools.permutations() generates permutations for an iterable. Time to brute-force those passwords ;-)
  2.  
  3. >>> import itertools
  4. >>> for p in itertools.permutations('ABCD'):
  5.       print(p)
  6.  
  7. ('A', 'B', 'C', 'D')
  8. ('A', 'B', 'D', 'C')
  9. ('A', 'C', 'B', 'D')
  10. ('A', 'C', 'D', 'B')
  11. ('A', 'D', 'B', 'C')
  12. ('A', 'D', 'C', 'B')
  13. ('B', 'A', 'C', 'D')
  14. ('B', 'A', 'D', 'C')
  15. ('B', 'C', 'A', 'D')
  16. ('B', 'C', 'D', 'A')
  17. ('B', 'D', 'A', 'C')
  18. ('B', 'D', 'C', 'A')
  19. ('C', 'A', 'B', 'D')
  20. ('C', 'A', 'D', 'B')
  21. ('C', 'B', 'A', 'D')
  22. ('C', 'B', 'D', 'A')
  23. ('C', 'D', 'A', 'B')
  24. ('C', 'D', 'B', 'A')
  25. ('D', 'A', 'B', 'C')
  26. ('D', 'A', 'C', 'B')
  27. ('D', 'B', 'A', 'C')
  28. ('D', 'B', 'C', 'A')
  29. ('D', 'C', 'A', 'B')
  30. ('D', 'C', 'B', 'A')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Pastebin PRO 'WINTER SPECIAL'!
Get 40% OFF Pastebin PRO accounts!