mirror of
https://github.com/leisurelicht/wtfpython-cn.git
synced 2024-12-06 16:30:12 +08:00
8 lines
205 B
Python
8 lines
205 B
Python
def square(x):
|
|
sum_so_far = 0
|
|
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
|
|
|
|
print(square(10))
|