Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Last active June 3, 2016 15:14
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 chuck0523/ae6aee8b0679ffc751e899806ddab1ed to your computer and use it in GitHub Desktop.
Save chuck0523/ae6aee8b0679ffc751e899806ddab1ed to your computer and use it in GitHub Desktop.
print([[[x1 + x2 + y1 + y2 + z1 + z2 for x1 in 'abc' for x2 in 'abc' if all(x1 == a for a in [x2, y1, y2, z1, z2])] for y1 in 'abc' for y2 in 'abc'] for z1 in 'abc' for z2 in 'abc'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment