Comment Re:I like Python (Score 1) 997
I think you don't know how the indention actually works in Python. The only indention requirement is blocks must be indented to be recognized as such.
So you can indent a block with 1, 2, ... spaces or TABs. You can even mix and match as you choose, and you can change your mind from one block to another.
The following code runs fine:
if 10 < 20:
print "Hello"
else:
print "Goodbye"
Here the "then" branch of the if-statement is indented with a single TAB character (that might not survice in the comment, but it was a TAB in the file I tested with). The "else" branch is indented with three spaces.
All in all there is *nothing* to worry about with indention in Python -- you only have to be consistent within a single block and you really hope you would do that anyway :-)
So you can indent a block with 1, 2,
The following code runs fine:
if 10 < 20:
print "Hello"
else:
print "Goodbye"
Here the "then" branch of the if-statement is indented with a single TAB character (that might not survice in the comment, but it was a TAB in the file I tested with). The "else" branch is indented with three spaces.
All in all there is *nothing* to worry about with indention in Python -- you only have to be consistent within a single block and you really hope you would do that anyway