Skip to content

Commit 68c675b

Browse files
author
cclauss
authored
# noqa: E999 # pylint: disable=mixed-indentation
1 parent c0a8151 commit 68c675b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mixed_tabs_and_spaces.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def square(x):
22
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
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
66

77
print(square(10))

0 commit comments

Comments
 (0)