Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 147
    \$\begingroup\$ This fails in python3: you can no more mix spaces and tabs(a bad thing for codegolf, but a good thing in all other cases). \$\endgroup\$ Commented Oct 19, 2013 at 15:41
  • 1
    \$\begingroup\$ In python 3.4 this seems to work fine. \$\endgroup\$ Commented Aug 15, 2016 at 23:09
  • 10
    \$\begingroup\$ @trichoplax, In python 3.4.3 I get TabError: inconsistent use of tabs and spaces in indentation. \$\endgroup\$ Commented Oct 3, 2016 at 5:16
  • 2
    \$\begingroup\$ For reference, a tab is worth 8 spaces. \$\endgroup\$ Commented Jun 29, 2018 at 22:35
  • 3
    \$\begingroup\$ Note that your editor may be changing the tab characters into space. This happened to me in VSCode. The trick there is to 1) enable whitespace rendering - "editor.renderWhitespace": "all" and 2) stop the editor from replacing it with whitespace - "editor.insertSpaces": false, "editor.detectIndentation": false. (VSCode version 1.46.1). If you want these to work only for the current golfing project, you can add a local settings.json file to the current workspace. \$\endgroup\$ Commented Jun 22, 2020 at 10:11