6 lines
143 B
Python
6 lines
143 B
Python
|
def square(x):
|
||
|
runningtotal = 0
|
||
|
for counter in range(x):
|
||
|
runningtotal = runningtotal + x
|
||
|
return runningtotal
|
||
|
print(square(10))
|