We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0a8151 commit 68c675bCopy full SHA for 68c675b
mixed_tabs_and_spaces.py
@@ -1,7 +1,7 @@
1
def square(x):
2
sum_so_far = 0
3
- for counter in range(x):
4
- sum_so_far = sum_so_far + x
5
- return sum_so_far # noqa: E999 # pylint: disable=bad-indentation Python 3 will raise a TabError here
+ 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
6
7
print(square(10))
0 commit comments