
sum = 0
for i in range(101):
    sum += i**2

sqr_of_sum = ((100*101)/2)**2
print 'difference between sum of the squares of the first 100 natural numbers and the square of the sum is %d' % (sqr_of_sum-sum,)

ae5a8b56e85f7a2db81de24e8bea994fc5b7c9af

sum = 0
for i in range(101):
    sum += i**2

sqr_of_sum = ((100*101)/2)**2
print 'difference between sum of the squares of the first 100 natural numbers and the square of the sum is %d' % (sqr_of_sum-sum,)
