This page topics close

Python does not use braces({}) to indicate blocks of code for class and function definitions or flow control. Blocks of code are denoted by line indentation, which is rigidly enforced.

The number of spaces in the indentation can vary, but all statements within the block must be indented the same amount

In Python all the continuous lines indented with the same number of spaces would form a block .

What next?

The next topic is Python Comments

Share this page