While we are at it Python:
>>> sum(x*x for x in xrange(1,11))
385
You could use a map in Python as well, but really, the generator expression is much cleaner: >>> sum(map(lambda x: x*x, xrange(1,11)))
385