2017-08-29 21:42:17 +00:00
|
|
|
def square(x):
|
2017-08-29 21:48:31 +00:00
|
|
|
sum_so_far = 0
|
2017-09-04 17:19:16 +00:00
|
|
|
for _ in range(x):
|
|
|
|
sum_so_far += x
|
|
|
|
return sum_so_far # noqa: E999 # pylint: disable=mixed-indentation Python 3 will raise a TabError here
|
2017-08-29 21:48:31 +00:00
|
|
|
|
|
|
|
print(square(10))
|