Difference of Squares Exercise is completed

in #ita16 days ago

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.31
TRX 0.12
JST 0.032
BTC 57810.33
ETH 2939.11
USDT 1.00
SBD 3.70