Hi,

Somebody should please help me with this below codes. I expected the program to print the total for the sum of square of integers(starting from 1). The language is Pyhton

def square():

sum = 0

total = 0

i = 1

while i <= 10:

square = i^2

sum += square

i += 1

total = total + sum

print(total)

square()

This is the output is bringing out

3

6

10

20

37