Write a python function to find the difference between the sum of the squares of the first two hundred natural numbers and the square of the sum.


Topic: Write a python function to find the difference between the sum of the squares of the first two hundred natural numbers and the square of the sum.

Solution

r = range(1, 201)
a = sum(r)
print (a * a - sum(i*i for i in r))



List all Python Programs