> What about: > > result + x**2 from result = 0.0 for x in S > > Essentially short for: > result = 0.0 > for x in S: > result = result + x**2 You're kidding right? --Guido van Rossum (home page: http://www.python.org/~guido/)