Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. highP = 0
  2. for i in range (999, 0, -1):
  3. for j in range (999,0, -1):
  4. possP = str(i*j)
  5. revP = (''.join(reversed(str(possP))))
  6. if revP == possP and int(revP) > int(highP):
  7. highP = revP
  8. print (highP)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement