Created
May 25, 2015 23:56
-
-
Save dimiro1/edc0e574dbf5cf28f3e0 to your computer and use it in GitHub Desktop.
Permutations Python
This file contains hidden or 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
from itertools import permutations | |
sum(1 for i in [int(''.join(str(x) for x in e)) for e in permutations([2,3,5,6,7,9], 3)] if i % 5 == 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment