print [ x*x for x in xrange(1000) if list(str(x*x)) == list(reversed(str(x*x)))]
$ python foo.py
[0, 1, 4, 9, 121, 484, 676, 10201, 12321, 14641, 40804, 44944, 69696, 94249, 698896]
print [ x*x for x in xrange(1000) if list(str(x*x)) == list(reversed(str(x*x)))]
$ python foo.py
[0, 1, 4, 9, 121, 484, 676, 10201, 12321, 14641, 40804, 44944, 69696, 94249, 698896]