Guest User

Untitled

a guest
Oct 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import itertools
  3.  
  4. listnums = [2,5,8,4]
  5.  
  6. def main():
  7. generator = itertools.permutations(listnums)
  8. for i, perm in enumerate(list(generator)):
  9. print "d80{code}109c0".format(code=''.join(str(i) for i in perm))
  10.  
  11. if __name__ == "__main__":
  12. main()
Add Comment
Please, Sign In to add comment