Poll: What do you use to indent your code with?

  • With spaces, 2 columns
  • With tabs, 2 columns
  • With spaces, 4 columns
  • With tabs, 4 columns
  • With spaces, 8 columns
  • With tabs, 8 columns

0 voters

2 Likes

I love my (four column) tabs!

3 Likes

So you use js and never python?

I indent Python the same

2 Likes

Python does not accept tabs as indents…

It does? I’ve done it before? (I just searched it up, PEP recommends spaces, but tabs are still allowed.)

2 Likes

It does, you just need to make sure there are no spaces, it has to be only tabs

2 Likes

In Replit I just use Tab on every language. Recently I’ve started using Ctrl ] as well. For unindent, Shift Tab and Ctrl [.

1 Like

@savardo means this lol:

2 Likes

I use the default. It works.

1 Like

four space all the way XD

3 Likes

same XD I hate the \t character

2 Likes

I do it the normal way

2 Likes

Trick question: I don’t indent at all!

Never let them know your next move.

How do you code Python without indentation? I’m pretty sure you could do HTML in one line and no indents but not Python. I know you code in Python (Terry the Chat Bot).

2 Likes

I just look at the funny red text that happens when I run and know I’m doing it right.

exec("if True:\n\tprint('Cool')\n\tfoo=0")
__import__("functools").reduce((lambda r,x: r-set(range(x**2,10000000,x)) if (x in r) else r), range(2,int(10000000**0.5)), set(range(2,n)))
2 Likes