You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* **Don't mix tabs and spaces!** The character just preceding return is a "tab", and the code is indented by multiple of "4 spaces" elsewhere in the example.
1332
-
* This is how Python handles tabs:
1333
-
> First, tabs are replaced (from left to right) by one to eight spaces such that the total number of characters up to and including the replacement is a multiple of eight <...>
1334
-
* So the "tab" at the last line of `square` function is replaced with eight spaces, and it gets into the loop.
1335
-
* Python 3 is kind enough to throw an error for such cases automatically.
0 commit comments