Advertisement
Korotkodul

Python ITERTOOLS

Sep 17th, 2022
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. import itertools
  2.  
  3. d = int(input())
  4. hex_d = hex(d)[2:]
  5. hex_set = list(hex_d)
  6. perm_set  = itertools.permutations(hex_set)
  7. for i in perm_set:
  8.     print(i)
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement