Skip to content

Instantly share code, notes, and snippets.

@benawad
Created October 31, 2014 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benawad/266eafc4136e5da1398f to your computer and use it in GitHub Desktop.
Save benawad/266eafc4136e5da1398f to your computer and use it in GitHub Desktop.
One liner
import itertools
print list(itertools.permutations([0,1,2,3,4,5,6,7,8,9]))[999999]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment