Difference of Squares Exercise is completed

in #italast month

def square_of_sum(number):
square = 0
for i in range(number+1):
square += i
return square ** 2

def sum_of_squares(number):
sum = 0
for i in range(number+1):
sum += i*i
return sum

def difference_of_squares(number):
return square_of_sum(number) - sum_of_squares(number)

Sort:  

Thank you, friend!
I'm @steem.history, who is steem witness.
Thank you for witnessvoting for me.
image.png
please click it!
image.png
(Go to https://steemit.com/~witnesses and type fbslo at the bottom of the page)

The weight is reduced because of the lack of Voting Power. If you vote for me as a witness, you can get my little vote.

Coin Marketplace

STEEM 0.28
TRX 0.13
JST 0.032
BTC 65128.28
ETH 2950.17
USDT 1.00
SBD 3.64