Last active
July 19, 2016 22:32
-
-
Save leotrs/2529cb3a5571684ab293ea8afede56e7 to your computer and use it in GitHub Desktop.
dojo 19/7/16
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
from itertools import product | |
print(next(p for p in reversed(sorted(i*j for i,j in product(range(100,999),range(100,999)))) if list(str(p))==list(reversed(str(p))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment