MCPcopy
hub / github.com/satwikkansal/wtfpython / square

Function square

mixed_tabs_and_spaces.py:1–5  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1def square(x):
2 sum_so_far = 0
3 for _ in range(x):
4 sum_so_far += x
5 return sum_so_far # noqa: E999 # pylint: disable=mixed-indentation Python 3 will raise a TabError here
6
7print(square(10))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected