Last active
June 3, 2016 15:14
-
-
Save chuck0523/ae6aee8b0679ffc751e899806ddab1ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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