mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-10-31 17:08:44 +01:00
8 lines
137 B
Python
Executable File
8 lines
137 B
Python
Executable File
def square(x):
|
|
sum_so_far = 0
|
|
for counter in range(x):
|
|
sum_so_far = sum_so_far + x
|
|
return sum_so_far
|
|
|
|
print(square(10))
|