Created
December 13, 2016 22:30
-
-
Save ekiro/68ecf4ad1a93ff1606cafc6e75a75070 to your computer and use it in GitHub Desktop.
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
max_pal = 0 | |
for x in range(100, 1000): | |
for y in range(x, 1000): | |
number = x * y | |
if number > max_pal: | |
numStr = str(number) | |
if numStr == numStr[::-1]: | |
max_pal = number | |
print(max_pal) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment