Structuring with Indentation

Blocks in Python through indentation Most programming languages use certain characters or keywords to group statements:

Python uses a different principle. Programs get structured through indentation, this means that code blocks are defined by their indentation. Okay that's what we expect from any program code, isn't it? Yes, but in the case of Python it's a language requirement not a matter of style. This principle makes it easier to read and understand other people's Python code.


A statement can be continued on the next line with the continuation character "\".