lst=[x**2 for x in range(1,101)]print(lst)print(sum(lst))
def sumsqr(n): return int(n * (n + 1) * (2 * n + 1) / 6)print(sumsqr(100))