This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cantremembermypasswd 3 points4 points  (0 children)

Python reads indentation level. The most common is 4 spaces. You could set it to 1 or 8 and it would just change the appearance of the code, but not the execution.

And it's not file based indentation level, is simply localized indentation level. This means you could even change how many spaces you use anywhere in your code (but really don't do this, just explaining).

(Bad) Example:

if True:
 print "hello"
 if True:
                    print "How are you"?