Perl to Python: Source code formatting
In Perl indentations and newlines don't mean anything. You can even write a one-liner of your program. Blocks are indicated by the use of curly braces ({...}).
In Python you will mainly work with indentations. Once you start a new block you need to increase the indentation. It doesn't matter if you use spaces or TABs. It just needs to be consistent. That makes Python code easy to read. And although many people say that you should use spaces I find it much easier to use TABs. My keyboard has a TAB key but not a "three spaces" key.
