for n in range(1, 10): result += (n**2)
sum()
result = sum([x**2 for x in range(1,11)])
result = functools.reduce(lambda a,b: a + b*b, range(1,11))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)