Created
September 29, 2014 01:23
-
-
Save dhermes/9a9f0af06b23b2031232 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
for first5 in xrange(10**4, 10**5): | |
first5_list = map(int, str(first5)) | |
for last5 in itertools.product((0, 1), repeat=5): | |
digit_list = first5_list + list(last5) # last5 is a tuple | |
if fits_criterion(digit_list): | |
print digit_list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment