- 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
0 voters
I love my (four column) tabs!
So you use js and never python?
I indent Python the same
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.)
It does, you just need to make sure there are no spaces, it has to be only tabs
In Replit I just use Tab
on every language. Recently I’ve started using Ctrl ]
as well. For unindent, Shift Tab
and Ctrl [
.
I use the default. It works.
four space all the way XD
same XD I hate the \t
character
I do it the normal way
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).
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)))