Instantly share code, notes, and snippets.

Embed
What would you like to do?
isobel:~ adam$ python -c 'import itertools, sys; [sys.stdout.write("e" + "".join(i) + "g\n") for i in itertools.permutations("everything"[1:-1])]' | head -50
everything
everythnig
everytihng
everytinhg
everytnhig
everytnihg
everyhting
everyhtnig
everyhitng
everyhintg
everyhntig
everyhnitg
everyithng
everyitnhg
everyihtng
everyihntg
everyinthg
everyinhtg
everynthig
everyntihg
everynhtig
everynhitg
everynithg
everynihtg
evertyhing
evertyhnig
evertyihng
evertyinhg
evertynhig
evertynihg
everthying
everthynig
everthiyng
everthinyg
everthnyig
everthniyg
evertiyhng
evertiynhg
evertihyng
evertihnyg
evertinyhg
evertinhyg
evertnyhig
evertnyihg
evertnhyig
evertnhiyg
evertniyhg
evertnihyg
everhyting
everhytnig
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 32] Broken pipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment