Skip to content

Instantly share code, notes, and snippets.

@dimiro1
Created May 25, 2015 23:56
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 dimiro1/edc0e574dbf5cf28f3e0 to your computer and use it in GitHub Desktop.
Save dimiro1/edc0e574dbf5cf28f3e0 to your computer and use it in GitHub Desktop.
Permutations Python
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