import time
start = time.time()
palindromes = [x*y for x in xrange(100,1000)
for y in xrange(x,1000)
if str(x*y)[::-1]==str(x*y)]
print "Answer:{}".format( max(palindromes) )
print "Elapsed time:{0} seconds".format(time.time()-start)
Answer:906609 Elapsed time:0.334797143936 seconds